cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ari Maniatis (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1412) Failures when defining callbacks for abstract entities
Date Tue, 07 Sep 2010 16:31:39 GMT

     [ https://issues.apache.org/jira/browse/CAY-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ari Maniatis updated CAY-1412:
------------------------------

    Fix Version/s: 3.0.2
                       (was: 3.0.1)

> Failures when defining callbacks for abstract entities
> ------------------------------------------------------
>
>                 Key: CAY-1412
>                 URL: https://issues.apache.org/jira/browse/CAY-1412
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.1M1, 3.0.2
>
>
> http://markmail.org/message/urk6a4c2owilyxmw
> If a class for an abstract entity is defined as "abstract" (for now manually, see CAY-1411),
and a callback method is not defined (it will be generated as abstract in _Entity class),
Cayenne would throw something like this:
> Exception in thread "main" java.lang.IllegalArgumentException: Class mrg.model.Product
has no valid callback method 'xxxxx'  
> inside CallbackOnEntity. CallbackOnEntity should take into account abstract method definition
in a superclass to prevent this from happenning. 
> For now a simple workaround is to define a noop non-abstract method in the abstract subclass.
>  

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


Mime
View raw message