On Jan 8, 2007, at 11:59 AM, Andrus Adamchik wrote:
On Jan 8, 2007, at 9:39 PM, Dain Sundstrom wrote:
Well, we depend on being able to listen to events on the EM which
there is no spec interface for. I'm sure Cayanne has and
interface that can provide us with the events, and when they send
us the info we can add a hook for their Impl.
What kind of events?
We need afterLoad, beforeStore, afterAttach, beforeDelete, and
afterDetach so we can make the proper EJB Entity bean callbacks. The
code we use for OpenJPA is here:
http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/
container/openejb-core/src/main/java/org/apache/openejb/core/cmp/jpa/
JpaCmpEngine.java?revision=492404&view=markup&pathrev=492419
look for OpenJPALifecycleListener inner class.
-dain