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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to