Hi,
I've just come across the caching feature of objectForPK. This is causing me
problems so I've had a look at the SingleObjectQuery. This looks much more
like what I need. Now I'd like to modify my template to provide a method
which creates an ObjectId given a pk value. Something a bit like:
createObjectID(int value)
{
ObjectId result = new ObjectId(this.tablename, this.pkColumn, value);
return result;
}
This should be fine but what about the tables that have compound primary
keys? Can I create an ObjectId given multiple columns?
Cheers,
Dave
This archive was generated by hypermail 2.0.0 : Thu Feb 23 2006 - 12:03:31 EST