[castor-dev] JPA-related callback hook enhancements
Robert Thurnher <[email protected]> Fri, 21 May 2010 12:45:45 +0200
| Newsgroups | gmane.comp.java.castor.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
we're currently implementing support for JPA
`@[Pre|Post][Persist|Load|Update|Remove]` annotations.
Now, in order to be able to fully cover, e.g., `PreUpdate` as in JPA
spec it would be necessary to introduce a new according callback hook
within Castor's transaction handling (i.e.,
`o.c.p.AbstractTransactionContext#prepareForCreate`).
Since our current approach here'd further be introducing a new
associated `o.e.c.p.s.CallbackInterceptor` method (namely,
`modifying`) and this would subsequently cause any (Castor user)
implementations of `CallbackInterceptor` and/or `Persistent` interface
being required to be adapted accordingly, we'd like to RFC. :)
Thanks in advance for any further feedback on this.
Here's the Jira issue incl. patch(es):
http://jira.codehaus.org/browse/CASTOR-2908
-- Robert
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email