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 2010/11/26 20:44:15 UTC

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

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


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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org>.
     [ 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

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

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ 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

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

Posted by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org>.
     [ 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-patch.txt

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