• 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: Help with this db design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with this db design


  • Subject: Re: Help with this db design
  • From: Art Isbell <email@hidden>
  • Date: Sat, 22 Mar 2008 21:11:11 -1000

On Mar 22, 2008, at 7:09 PM, Guido Neitzer wrote:

So add a unique constraint on the database level (to be safe) and check for this condition in code (validateForSave) before saving to the database.


Just use a compound primary key like a join entity, both being propagated from the entities in the many-to-many relationship. This applies the desired constraint without needing to actually add an explicit constraint to the DB.

Aloha,
Art

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Help with this db design
      • From: Guido Neitzer <email@hidden>
References: 
 >Help with this db design (From: Gustavo Pizano <email@hidden>)
 >Re: Help with this db design (From: Jean-François Veillette <email@hidden>)
 >Re: Help with this db design (From: Gustavo Pizano <email@hidden>)
 >Re: Help with this db design (From: Jean-François Veillette <email@hidden>)
 >Re: Help with this db design (From: Gustavo Pizano <email@hidden>)
 >Re: Help with this db design (From: Guido Neitzer <email@hidden>)
 >Re: Help with this db design (From: Gustavo Pizano <email@hidden>)
 >Re: Help with this db design (From: Guido Neitzer <email@hidden>)
 >Re: Help with this db design (From: Gustavo Pizano <email@hidden>)
 >Re: Help with this db design (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Help with this db design
  • Next by Date: Re: Fetching a specified Object.
  • Previous by thread: Re: Help with this db design
  • Next by thread: Re: Help with this db design
  • Index(es):
    • Date
    • Thread