cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1518) cgen: duplicate callback methods
Date Thu, 24 Mar 2011 13:51:05 GMT

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

Dzmitry Kazimirchyk updated CAY-1518:
-------------------------------------

    Attachment: cay-1518-test.txt

Test case for this issue.

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

Mime
View raw message