On Jan 15, 2005, at 4:06 PM, Eric Schneider wrote:
> Here's the gotcha, I'm successfully using this with Hibernate right
> now. I'm not entirely 100% sure that Cayenne assigns its primary
> keys prior to calling validateForInsert(), which is where I would put
> this code if I was doing it in a Cayenne project. Maybe Andrus could
> confirm if the ObjectId is created before validateForInsert() is
> called. If it isn't, maybe he can offer a more appropriate place for
> it.
No, it is actually created after the validation. But nothing should
prevent you from calling PK generator explicitly from
validateForInsert().
Andrus
This archive was generated by hypermail 2.0.0 : Sat Jan 15 2005 - 21:23:48 EST