Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1518

cgen: duplicate callback methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2, 3.1M1
    • 3.0.2, 3.1M3
    • Core Library
    • None

    Description

      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.

      Attachments

        1. cay-1518-patch.txt
          1 kB
          Dzmitry Kazimirchyk
        2. cay-1518-test.txt
          3 kB
          Dzmitry Kazimirchyk

        Issue Links

          Activity

            People

              andrus Andrus Adamchik
              andrus Andrus Adamchik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: