• 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
Question on Inherited Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on Inherited Relationships


  • Subject: Question on Inherited Relationships
  • From: Kieran Kelleher <email@hidden>
  • Date: Fri, 12 Nov 2004 14:26:27 -0500

I am doing my first project with inheritance and I need some EOModeling advice please.

I have an abstract entity Trader with to-one relationship to foreign key, oidTrader, in entity Account

Trader <-> Account

The relationships are set as mandatory both ways and cascade from the Trader side.

I have Customer and Vendor , both are single-table-inheritance subclasses of Trader

So, in "Account", I still have a relationship "trader", but no "customer" or "vendor" relationship.

My question will this all "just work" when I use account.trader in java or do I need to create new explicit relationships to "customer" and "vendor" in which case I am stuck on how the mandatory account->trader integrity rule will play?

-Kieran

________________________________________________________________
Dev Config = OS X 10.3.5 / Java 1.4.2_05 / WO 5.2.3 / XCode v1.5 / MySQL 4.0.20 / Connector-J 3.0.11
Deploy Config = OS X 10.3.5 Server / Java 1.4.2_05 / WO 5.2.3 / MySQL 4.0.20 / Connector-J 3.0.11
My Blog: http://webobjects.webhop.org/

 _______________________________________________
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: Question on Inherited Relationships
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: question about appendToResponse?
  • Next by Date: Re: Question on Inherited Relationships
  • Previous by thread: WWDC 2004 DVDs for sale?
  • Next by thread: Re: Question on Inherited Relationships
  • Index(es):
    • Date
    • Thread