You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/03/24 19:35:05 UTC

[jira] [Closed] (CAY-1518) cgen: duplicate callback methods

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

Andrus Adamchik closed CAY-1518.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M3
                   3.0.2

> cgen: duplicate callback methods
> --------------------------------
>
>                 Key: CAY-1518
>                 URL: https://issues.apache.org/jira/browse/CAY-1518
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0.2, 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0.2, 3.1M3
>
>         Attachments: cay-1518-patch.txt, cay-1518-test.txt
>
>
> If a single callback method is mapped to multiple events, this method is generated N number of times. E.g.:
> <obj-entity ...>
> ...
>   <pre-persist method-name="preCommit"/>
>   <pre-update method-name="preCommit"/>
> </obj-entity>
> public abstract class _X extends CayenneDataObject { 
>     ...
>    protected abstract void preCommit();
>    protected abstract void preCommit();
>  }
> I tried this on 3.1, but I am pretty sure this is broken in 3.0 as well.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira