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

Lazy optional relationship creation on EO accessor


  • Subject: Lazy optional relationship creation on EO accessor
  • From: Jon Nolan <email@hidden>
  • Date: Tue, 23 Feb 2010 09:55:56 -0700
  • Organization: Loch Garman

Is this sane and safe?

   public Properties properties() {
       Properties properties = super.properties();
       if (properties == null) {
           properties = Properties.createProperties(editingContext());
           setPropertiesRelationship(properties);
       }
       return properties;
   }

Seems to work fine and suits my needs perfectly but it makes me uneasy.

Thanks,
Jon

_______________________________________________
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: Lazy optional relationship creation on EO accessor
      • From: Kieran Kelleher <email@hidden>
    • Re: Lazy optional relationship creation on EO accessor
      • From: David LeBer <email@hidden>
  • Prev by Date: Re: Profiles, jobs and projects on wocommunity.org
  • Next by Date: Re: Lazy optional relationship creation on EO accessor
  • Previous by thread: WOWODC recordings pricing
  • Next by thread: Re: Lazy optional relationship creation on EO accessor
  • Index(es):
    • Date
    • Thread