• 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
Basic EO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic EO question


  • Subject: Basic EO question
  • From: "Randy Wigginton" <email@hidden>
  • Date: Wed, 5 Apr 2006 13:17:15 -0400

Hi all, this is probably very obvious for some of you, but not to me.  I am trying to figure out how to set up my model in a seemingly very simple way.

 

Let’s suppose I have a master object “Master”, and a slave object “Slave”.  There should be an optional 1:1 relationship from master->slave.  Let’s imagine the following fields:

 

Master:

Id integer primary key

Value string

 

Slave:

Id integer primary key,

Subvalue string NOT NULL

 

How do I set up an optional relationship from master to slave, such that the primary key from master (ID) is propagated into Slave?  If I check either the “Propagate primary key” or “Owns destination” box for the relationship from master->slave, it attempts to create a slave object immediately when the master object is created.  Since the relationship is supposed to be optional (per the radio button), what am I doing wrong?  How can I create a Master object, then perhaps later on create a slave object that belongs to master?

 

Thanks for any help,

Randy

 

 _______________________________________________
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: Basic EO question
      • From: Art Isbell <email@hidden>
References: 
 >Re: more oracle problems (From: Dave Elsner <email@hidden>)

  • Prev by Date: Re: Letting the user enter the compound primary key in D2W
  • Next by Date: Re: Basic EO question
  • Previous by thread: Re: more oracle problems
  • Next by thread: Re: Basic EO question
  • Index(es):
    • Date
    • Thread