Discussion:
[castor-dev] JPA-related callback hook enhancements
Robert Thurnher
2010-05-21 10:45:45 UTC
Permalink
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

Loading...