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

Class enhancement needed for JPA entity callbacks

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.0
    • None
    • None
    • None

    Description

      Entity callback inheritance implemented per CAY-669 can't address one JPA requirement (footnote [22] on page 62 of the spec):

      "Note that if a method overrides an inherited callback method but specifies a different lifecycle event or is not a lifecycle callback
      method, the overridden method will be invoked."

      "java.reflect.Method#invoke" behavior is polymorphic, so calling a super doesn't seem possible via normal Java reflection... So a class enhancemen seems to be required to call "super" from within the object. Is there any other way to do that?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: