Class enhancement needed for JPA entity callbacks
-------------------------------------------------

         Key: CAY-670
         URL: http://issues.apache.org/cayenne/browse/CAY-670
     Project: Cayenne
        Type: Task

  Components: Cayenne JPA  
    Versions: 3.0    
    Reporter: Andrus Adamchik
     Fix For: 3.0


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?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to