• 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: UNIQUE SQL constraint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNIQUE SQL constraint


  • Subject: Re: UNIQUE SQL constraint
  • From: Miguel Arroz <email@hidden>
  • Date: Thu, 15 Dec 2005 23:54:55 +0000

Hi!

  Thanks for the really fast answer! :)

Strange design flaw, specially on a framework ready for usage in a multiple application instances concurrency environment...

  Yours

Miguel Arroz

On 2005/12/15, at 23:51, Chuck Hill wrote:

Short answer: no.  :-)

Leaving EOModeler aside, you can add your own constraint. However, you then have to check for this in EOGeneralAdaptorExceptions raised during saveChanges. And the exception differs among databases. All told, it is not as nice and clean as the rest of EOF.

Chuck


On Dec 15, 2005, at 3:47 PM, Miguel Arroz wrote:

Hi!

Is there a way to tell EOModeler that I want an entity instance variable to be UNIQUE in the database? In other words, is there a way to tell EOModeler that, when generating the SQL code, I want some column to have a UNIQUE constraint?

  Yours

Miguel Arroz

      "GUERRA E' PAZ
       LIBERDADE E' ESCRAVIDAO
       IGNORANCIA E' FORCA"       -- 1984

Miguel Arroz
http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects






      "GUERRA E' PAZ
       LIBERDADE E' ESCRAVIDAO
       IGNORANCIA E' FORCA"       -- 1984

Miguel Arroz
http://www.ipragma.com



_______________________________________________
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: UNIQUE SQL constraint
      • From: Lachlan Deck <email@hidden>
    • Re: UNIQUE SQL constraint
      • From: Chuck Hill <email@hidden>
References: 
 >UNIQUE SQL constraint (From: Miguel Arroz <email@hidden>)
 >Re: UNIQUE SQL constraint (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: UNIQUE SQL constraint
  • Next by Date: Re: UNIQUE SQL constraint
  • Previous by thread: Re: UNIQUE SQL constraint
  • Next by thread: Re: UNIQUE SQL constraint
  • Index(es):
    • Date
    • Thread