• 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
EOModel needs an easy tweak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOModel needs an easy tweak


  • Subject: EOModel needs an easy tweak
  • From: Farrukh Ijaz <email@hidden>
  • Date: Sat, 6 Nov 2010 14:39:55 +0300

Hi EOF-ologists,

I've a modelling issue and need to know what could be the suitable fix (or tweak) to fulfil the requirement.

Below is the existing EO Model.

PNG image

I've two entities (Entity A and Entity B) extending Abstract Entity X but these entities have their own tables (no single table inheritance). I need to design Entity D and Entity E where Entity D has a toMany relationship with Entity E and Entity E needs to have a toOne relationship with Entity A, Entity B, Entity C and Entity D.

1. One way can be for Entity E to have four different relationships such as toEntityA, toEntityB, toEntityC and toEntityD. (This is _not_ desirable)
2. The other way mentioned in the lower diagram where Entity A, Entity B, Entity C and Entity D extend Abstract Entity X and Entity E will have toOne relationship with Abstract Entity X. (This is _desirable_).

PNG image

What would be the easiest way to model such relationship? I'm _not_ relationship expert so may be the way I assumed the model (second diagram) can be wrong or practically impossible?
Also note that I cannot make Entity C and Entity D to extend Abstract Entity X due to some design constraints therefore I think to introduce Abstract Entity Alpha.

Thanks,

Farrukh



 _______________________________________________
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

  • Follow-Ups:
    • Re: EOModel needs an easy tweak
      • From: Mark Wardle <email@hidden>
    • Re: EOModel needs an easy tweak
      • From: Jean-Francois Veillette <email@hidden>
    • Re: EOModel needs an easy tweak
      • From: Steve Peery <email@hidden>
  • Prev by Date: Re: Greetings!
  • Next by Date: Re: Greetings!
  • Previous by thread: Re: Greetings!
  • Next by thread: Re: EOModel needs an easy tweak
  • Index(es):
    • Date
    • Thread