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

Look up callback methods on listener superclasses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M3, 3.0
    • Core Library
    • None

    Description

      This is another feature that expands Cayenne listener implementation compared to JPA (the first one was CAY-949). To facilitate code reuse it should be nice to be able to define callback methods in a listener superclass, so that subclasses could simply override some behavior without declaring all callback methods. In fact JPA does not prohibit this behavior. It just doesn't mention anything about the superclass methods of a listener class.

      Currently Cayenne throws when a declared callback method is not found. I am going to add lookup for the method in question up the hierarchy.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: