• 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
Custom Primary key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom Primary key


  • Subject: Custom Primary key
  • From: Jean-Francois Veillette <email@hidden>
  • Date: Fri, 12 Feb 2010 14:22:01 -0500


I vaguely remember that someone wrote some code to create primary key based that embed entity name (or something like this) in it.
I want to use it as a foreign key akin to:
Person <->> Link <<-> Contact
where Contact is an abstract entity with sub-entity like "CivicAddress", "Phone number", "URL", "Email", etc.
I would like the primary key of contact to 'embed' the entity info, so that there is no need to fetch multiple tables just to find the right one.
Is there a prototype for this ?


I vaguely remember seeing some sample code that does this. But I can't figure out where.
Any pointer to it ?


Thanks,

- jfv


_______________________________________________ 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: Custom Primary key
      • From: Jean-Francois Veillette <email@hidden>
  • Prev by Date: Re: Ajax problem : NoSuchMethodError
  • Next by Date: Re: Custom Primary key
  • Previous by thread: Re: Ajax problem : NoSuchMethodError
  • Next by thread: Re: Custom Primary key
  • Index(es):
    • Date
    • Thread