• 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
Setting a Default toOne Relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting a Default toOne Relationship


  • Subject: Setting a Default toOne Relationship
  • From: David Avendasora <email@hidden>
  • Date: Thu, 18 May 2006 18:12:29 +0100

Hi all,

I know this has to be an incredibly simple thing to do, but I can't seem to figure out how.

All I want to do is defaults so that when an object is instantiated, it automatically has some of it's relationships defined. It is VERY easy to do this for an attribute, but I just can't get it to work for a relationship and I can't find in the documentation how to do it.

I know the code belongs in the awakeFromInsertion() method.

Can anyone give me a pointer to where in the documentation to look for this, or better yet a simple code fragment?

BTW, this is for a Java Client application, but I don't think that matters, right?

Dave


_______________________________________________ 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: Setting a Default toOne Relationship
      • From: David Holt <email@hidden>
    • Re: Setting a Default toOne Relationship
      • From: Ken Anderson <email@hidden>
    • Re: Setting a Default toOne Relationship
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Problem with EOModeler JDBC connection on Windows XP (updated)
  • Next by Date: Re: Setting a Default toOne Relationship
  • Previous by thread: Re: xml data update and its derived data synchronization problem
  • Next by thread: Re: Setting a Default toOne Relationship
  • Index(es):
    • Date
    • Thread