You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Robert Zeigler (JIRA)" <ji...@apache.org> on 2009/04/25 21:51:30 UTC
[jira] Closed: (CAY-1214) Class generation should create abstract
callback methods in the superclass and stub methods in the subclass
[ https://issues.apache.org/jira/browse/CAY-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler closed CAY-1214.
-------------------------------
Resolution: Fixed
> Class generation should create abstract callback methods in the superclass and stub methods in the subclass
> -----------------------------------------------------------------------------------------------------------
>
> Key: CAY-1214
> URL: https://issues.apache.org/jira/browse/CAY-1214
> Project: Cayenne
> Issue Type: Improvement
> Affects Versions: 3.0M5
> Reporter: Robert Zeigler
> Assignee: Robert Zeigler
> Priority: Minor
> Fix For: 3.0M6
>
>
> One problem I've had in the past is when I define a callback for a class in the modeler, but then forget to implement the callback, or misspell the callback, etc.
> Cayenne should ensure that a method is implemented at compile time.
> At the moment, I think the "right" way to do this is:
> 1) Make the superclass abstract
> 2) Add an abstract method in the superclass
> 3) If generating the subclass, generate a stub method.
> This ensures that naming issues are caught at compile time.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.