• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inheritance from separate model file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance from separate model file


  • Subject: Re: Inheritance from separate model file
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 17 Jun 2004 20:10:19 -0700

It works in code, but maintaining it in EOModeler is a royal PITA. File a bug report.

Chuck

On Jun 17, 2004, at 8:02 PM, Jason McInnes wrote:

Thanks, Chuck. I tried the copy/paste method and it
does copy everything (except the relationships which I
had to reset). But I guess the fundamental problem I
have with the copy/paste approach you describe is that
I don't see how changes to the parent entity in one
model would cascade down to its children in other
models.

I'm basically working with a model that will
eventually have a hundred or more entities and it is
becoming a little tough (well, annoying) to manage.
Plus, I want to reuse core parts of the model in other
applications (e.g., reuse/subclass core model X in
multiple applications without having to duplicate
model X's entities in the model for each application).
But if I have to change an entity in the core model, I
would just like to update the core model file without
having to go into every model file and make the
corresponding changes or make corresponding changes to
identical copies of the core entities in each separate
application's model.

In looking at EOModeler's UI it doesn't look like it
supports this (there is no way on the inspector screen
to select a model file when choosing a parent). And
judging from my brief test of copying an entity from
one model to another, the link back to the original
model file is basically broken.

Am I wrong?

Jason

--- Chuck Hill <email@hidden> wrote:

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



===== Jason McInnes 2 Degrees Cell: 206.849.3680 Email: email@hidden


__________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
_______________________________________________
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.


References: 
 >Re: Inheritance from separate model file (From: Jason McInnes <email@hidden>)

  • Prev by Date: Re: Inheritance from separate model file
  • Next by Date: Re: Bogus Gregorian Calendar
  • Previous by thread: Re: Inheritance from separate model file
  • Next by thread: An error has occurred in the Java Bridge
  • Index(es):
    • Date
    • Thread