• 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: Qualifier against target entity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier against target entity?


  • Subject: Re: Qualifier against target entity?
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Fri, 20 Dec 2013 11:53:16 -0500

Hi WOrriors,

A little late to the party but wanted to pass along that if you go to the “entity” you can create an “identity qualifier” that works everywhere including when you have a compound primary key.

For giggles, it would look something like so:

EOEntity entity = EOUtilities.entityForObject(eo.editingContext(), eo);
EOKeyGlobalID globalID = (EOKeyGlobalID) eo.editingContext().globalIDForObject(eo);
NSDictionary primaryKey = entity.primaryKeyForGlobalID(globalID);
EOQualifier identityQualifier = entity.qualifierForPrimaryKey(primaryKey);

Cheers,
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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: Qualifier against target entity?
      • From: Ken Anderson <email@hidden>
References: 
 >Qualifier against target entity? (From: Ken Anderson <email@hidden>)
 >Re: Qualifier against target entity? (From: Theodore Petrosky <email@hidden>)
 >Re: Qualifier against target entity? (From: Ken Anderson <email@hidden>)
 >Re: Qualifier against target entity? (From: Samuel Pelletier <email@hidden>)
 >Re: Qualifier against target entity? (From: Ken Anderson <email@hidden>)
 >Re: Qualifier against target entity? (From: Samuel Pelletier <email@hidden>)
 >Re: Qualifier against target entity? (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: Maven Archetypes Problem
  • Next by Date: Re: Qualifier against target entity?
  • Previous by thread: Re: Qualifier against target entity?
  • Next by thread: Re: Qualifier against target entity?
  • Index(es):
    • Date
    • Thread