• 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: Lazy optional relationship creation on EO accessor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lazy optional relationship creation on EO accessor


  • Subject: Re: Lazy optional relationship creation on EO accessor
  • From: David Avendasora <email@hidden>
  • Date: Tue, 23 Feb 2010 16:29:55 -0500

On Feb 23, 2010, at 3:07 PM, Jon Nolan wrote:

> David Avendasora wrote:
>> On Feb 23, 2010, at 12:27 PM, Jon Nolan wrote:
>>
>>> In this case I don't want to use awakeFromInsertion as the relationship is very, very optional (i.e. small % of entities have not-null relationship.)
>>
>> I'm I missing something here? What does being optional (or even very, very optional) have to do with using awakeFromInsertion?
>> Dave
> Dave,
>
> At the time the parent entity is created I don't know if I'll need the related entity.  I don't want to create an empty EO every time I create a new parent as there are literally hundreds of thousands of parents and maybe a few thousand with the need for the child.
> Think User --> Preferences with 99% of users content to inherit default settings and never override.  For the odd one that does a preferences object is created and the relationship established.

Ah. I see, you don't want to instantiate the EO. I thought you were saying that even in the very rare situations when you did instantiate it you didn't want to use awakeFromInsertion.

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

References: 
 >Lazy optional relationship creation on EO accessor (From: Jon Nolan <email@hidden>)
 >Re: Lazy optional relationship creation on EO accessor (From: David LeBer <email@hidden>)
 >Re: Lazy optional relationship creation on EO accessor (From: Jon Nolan <email@hidden>)
 >Re: Lazy optional relationship creation on EO accessor (From: David Avendasora <email@hidden>)
 >Re: Lazy optional relationship creation on EO accessor (From: Jon Nolan <email@hidden>)

  • Prev by Date: Re: "failed to provide new primary keys for entity"
  • Next by Date: Re: "failed to provide new primary keys for entity"
  • Previous by thread: Re: Lazy optional relationship creation on EO accessor
  • Next by thread: Re: Lazy optional relationship creation on EO accessor
  • Index(es):
    • Date
    • Thread