• 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: uniqueness constraint on an a foreign key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uniqueness constraint on an a foreign key


  • Subject: Re: uniqueness constraint on an a foreign key
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Sat, 20 Sep 2008 09:40:45 -0400


On Sep 19, 2008, at 16:20, Chuck Hill wrote:

I was thinking more of having A and B each have the other PK as a FK.

Huh... Have you ever done this? Anyone else?

Though this may irritate EOF when it tries to look up inverse relationships. You can tell EOF what to do by implementing String inverseForRelationshipKey(String relationshipKey) on A and B.

Yeah, sounds like this might end up kicking me in the ass. Especially since I can't override client side class descriptions, so I would have a discrepancy between what EOs and class descriptions see as inverse relationships. Not sure I like this idea, it might have unforeseeable consequences, no? More work...


But, to come back on the original idea, what do you think of putting a uniqueness constraint on the FK? Would that somewhere somehow screw the object graph up beyond repair?

F

though, after thinking about it some more, I don't really *need* this. I would like it though :)
_______________________________________________
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: uniqueness constraint on an a foreign key
      • From: Chuck Hill <email@hidden>
References: 
 >uniqueness constraint on an a foreign key (From: Florijan Stamenkovic <email@hidden>)
 >Re: uniqueness constraint on an a foreign key (From: Chuck Hill <email@hidden>)
 >Re: uniqueness constraint on an a foreign key (From: Florijan Stamenkovic <email@hidden>)
 >Re: uniqueness constraint on an a foreign key (From: Chuck Hill <email@hidden>)
 >Re: uniqueness constraint on an a foreign key (From: Florijan Stamenkovic <email@hidden>)
 >Re: uniqueness constraint on an a foreign key (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: uniqueness constraint on an a foreign key
  • Next by Date: Class.this.. ?
  • Previous by thread: Re: uniqueness constraint on an a foreign key
  • Next by thread: Re: uniqueness constraint on an a foreign key
  • Index(es):
    • Date
    • Thread