On 22/06/2007, at 8:32 AM, Michael Lepine wrote:

I'll look (and hope) for other solutions that may be cleaner though.


I've not tried to do this, so its just an idea to investigate: version 3.0 has lifecycle events which allow you to intercept certain calls to the Cayenne engine. One of those is PrePersist:

http://cayenne.apache.org/doc/lifecycle-callbacks.html

You may be able to do some magic there and swap your new Cayenne object for a used one from the data store.


Ari Maniatis


-------------------------->
Aristedes Maniatis
phone +61 2 9660 9700
PGP fingerprint 08 57 20 4B 80 69 59 E2  A9 BF 2D 48 C2 20 0C C8


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to