cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1281) Lifecycle callbacks reorganization
Date Sat, 03 Oct 2009 14:34:23 GMT

     [ https://issues.apache.org/jira/browse/CAY-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1281.
--------------------------------

    Resolution: Fixed

> 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.


Mime
View raw message