Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
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.