Re: Inheritance from separate model file
Re: Inheritance from separate model file
- Subject: Re: Inheritance from separate model file
- From: Chuck Hill <email@hidden>
- Date: Thu, 17 Jun 2004 13:43:35 -0700
On Jun 17, 2004, at 11:49 AM, Jason McInnes wrote:
Is it possible to have an entity in one model inherit
from an entity in another model?
Yes.
For example, have a
Person entity in Model X and a Doctor entity in Model
Y that is a sublcass of Person?
Yes.
I have a number of
entities that inherit from a core set of entities. The
.java files are broken out into separate packages, and
I'd like to have model files that correspond to those
packages, but I can't see how to do cross-model
inheritance. Is it possible?
All of the frameworks containing the model need to be included in the
same app/framework. You can choose the model when forming
relationships. Subclassing is more tricky due to UI bugs in EOModeler.
You can set the parent from the inspector, or subclass the entity in
one model and then cut and paste it where it belongs.
Chuck
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.