Lifecycle callbacks reorganization
----------------------------------
Key: CAY-1281
URL: https://issues.apache.org/jira/browse/CAY-1281
Project: Cayenne
Issue Type: Task
Components: Cayenne Core Library
Affects Versions: 3.0 beta 1
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Fix For: 3.0 beta 1
Per this thread: http://markmail.org/message/zxsyzipma4dwy3mh we need to
improve the callback mechanism to reflect Cayenne lifecycle (vs. JPA origins of
the current design). Minimal suggested change is this:
* Rename current "prePersist" to "postAdd".
* Add a new callback reusing the old name "prePersist", and invoke it on the
NEW objects before commit.
Related tasks:
1. Add support for pre-add and the new meaning of pre-persist in the Modeler.
2. Add the function to auto-migrate the existing 3.0 projects. The best
solution would be a Modeler-based migration that would upgrade all XML files
with project-version="3.0" or less to project-version="3.0.1" (or 3.0.0.1 to
avoid false analogies with Cayenne minor release versions?), changing
"pre-persist" to "post-add".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.