From the first glance, we can provide all these with minimal effort.
This overlaps with standard JPA callbacks (with the exception of
detach I believe) that Cayenne supports already.
BTW, before we move on with the assembly for TCK, is there anything
in OpenEJB (or Geronimo) that would help us to do in-container
integration testing on our end? Currently we only test the J2SE
provider flavor.
Appreciate any pointers.
Andrus
On Jan 8, 2007, at 10:48 PM, Dain Sundstrom wrote:
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