Re: EOGenerator & Inheritance
Re: EOGenerator & Inheritance
- Subject: Re: EOGenerator & Inheritance
- From: Geoff Hopson <email@hidden>
- Date: Fri, 10 Feb 2006 17:17:16 +0000
Or maybe your model should have a 'status' field and avoid all that nasty inheritence altogether. :-)
I'll get me coat...
Geoff
On 10/02/06,
David LeBer <email@hidden> wrote:
On 10-Feb-06, at 11:47 AM, David Avendasora wrote:
> I am using EOGenerator to create my custom java classes from my
> EOModel.
>
> I have a class "Part" that has three subclasses: Raw, Intermediate
> and Finished. When EOGenerator creates the _Raw.java,
> _Intermediate.java and _Finished.java, they all extend
> EOGenericRecord instead of Part.
>
> They *should* extend Part which extends _Part which extends
> EOGenericRecord, right?
>
> I just want to make sure I'm doing this right.
>
> Thanks!
Does your EOGenerator base template have this?
public abstract class <$GEN_PREFIX$><$classNameWithoutPackage$>
extends <$if hasParentEntity$><$javaParentClassName$><$else
$>EOGenericRecord<$endif$>
--
;david
--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site: http://www.codeferous.com
blog: http://david.codeferous.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden