You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2008/01/02 19:42:32 UTC

[JIRA] Created: (CAY-950) Look up callback methods on listener superclasses

Look up callback methods on listener superclasses
-------------------------------------------------

                 Key: CAY-950
                 URL: https://issues.apache.org/cayenne/browse/CAY-950
             Project: Cayenne
          Issue Type: Improvement
          Components: Cayenne Core Library
    Affects Versions: 3.0
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.0


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[JIRA] Closed: (CAY-950) Look up callback methods on listener superclasses

Posted by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org>.
     [ https://issues.apache.org/cayenne/browse/CAY-950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-950.
-------------------------------

    Resolution: Fixed

> Look up callback methods on listener superclasses
> -------------------------------------------------
>
>                 Key: CAY-950
>                 URL: https://issues.apache.org/cayenne/browse/CAY-950
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.