cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Created: (CAY-1518) cgen: duplicate callback methods
Date Fri, 26 Nov 2010 19:44:15 GMT
cgen: duplicate callback methods

                 Key: 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"/>

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.

View raw message