JPA-like callbacks support in the main Cayenne stack
-----------------------------------------------------
Key: CAY-660
URL: http://issues.apache.org/cayenne/browse/CAY-660
Project: Cayenne
Type: New Feature
Components: Cayenne Core Library
Versions: 3.0
Reporter: Andrus Adamchik
Assigned to: Andrus Adamchik
Fix For: 3.0
JPA specification defines callbacks similar to our 1.1 DataContext events that can be invoked either on an entity object or on an arbitrary class on commit:
PrePersist
PostPersist
PreRemove
PostRemove
PreUpdate
PostUpdate
PostLoad
With nested channels (CAY-658) and ObjectContext interface it should be possible to create iterceptors for all these callbacks that are external to DataContext or any other Cayenne classes. "PrePersist" and "PreRemove" (and possibly "PreUpdate" can go in an ObjectContext interceptor, the rest in a DataChannel (specifically DataDomain) interceptor. No JPA or JDK1.5 dependencies are needed to implement that.
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/cayenne/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Wed Sep 20 2006 - 19:02:31 EDT