Re: EOModel Consistency Check problem
Re: EOModel Consistency Check problem
- Subject: Re: EOModel Consistency Check problem
- From: Christian Brunschen <email@hidden>
- Date: Wed, 3 May 2006 10:34:56 +0200 (CEST)
On Wed, 3 May 2006, David Avendasora wrote:
Hi all,
When I save my EOModel, it is failing the consistency check. Here's the
message:
Entity Part (parent entity of Finished) needs a restricting qualifier in
order to filter out rows in table dbo.Part that are only holding data for
Finished instances.
Entity Part (parent entity of Intermediate) needs a restricting qualifier in
order to filter out rows in table dbo.Part that are only holding data for
Intermediate instances.
Entity Part (parent entity of Raw) needs a restricting qualifier in order to
filter out rows in table dbo.Part that are only holding data for Raw
instances.
How do I put three distinct restricting qualifier's on the Part entity?
You don't. You put one restricting qualifier in each class. If your Part
entity is abstract, then you shouldn't need one in it, but otherwise you
do - in order to identify those Parts that should be instantiated as Part
objects, rather than as Finished or Intermediate.
I've
been through the documentation numerous times and I don't see how this is
possible. The documentation (WebObjects EOModeler User Guide) only discusses
adding qualifiers to the child entity, not the parent entity. I've added them
to the child entity.
I'm sure I'm missing something obvious!
If you are never going to instantiate a Part, but only ever instantiate
instances of its subclasses, mark the Part entity as being abstract. That
should remove the need for a distinguishing qualifier on it as well.
Dave
// Christian Brunschen
_______________________________________________
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