Re: Single Table inheritance and EM question
Re: Single Table inheritance and EM question
- Subject: Re: Single Table inheritance and EM question
- From: Guido Neitzer <email@hidden>
- Date: Wed, 20 Aug 2008 14:16:38 -0600
- Thread-topic: Single Table inheritance and EM question
On 20.08.08 14:06, "William Hatch" <email@hidden> wrote:
> The sub entities all have the Parent defined as Summary (using the pop
> up) The Summary entity is abstract, and does not have a corresponding
> table set; I thought this was correct; is it? Each of the sub types
> use this as the distinguishing qualifier (summaryRangeType="month")
> where summaryRangeType is a class property and is set in the class
> over ride of awakeFromInsertion, although we're not using EOF to
> populate it anyway, but again thought this was the standard way to go
> about implementing single table inheritance. Thanks Chuck.
I don't know whether it makes a difference, but I also always set the table
on the abstract base entity.
Side note: if you are using ProjectWonder you should do initialization in
init, not in awakeFromInsertion. Or check whether the object is a new object
and only do the initialization there.
cug
_______________________________________________
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