users@glassfish.java.net

Re: Is there a mechanism to observe entities for changes?

From: <glassfish_at_javadesktop.org>
Date: Wed, 10 Oct 2007 15:41:02 PDT

You could use the JPA triggers @PostUpdate and @PostInsert in your entities if you don't have too many of them.

There must be a JPA way to do this, check the ejb3-persistence specification PDF document, it's not so long : http://jcp.org/aboutJava/communityprocess/final/jsr220/

Paul
[Message sent by forum member 'eskatos' (eskatos)]

http://forums.java.net/jive/thread.jspa?messageID=239407