Re: UNIQUE SQL constraint
Re: UNIQUE SQL constraint
- Subject: Re: UNIQUE SQL constraint
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 Dec 2005 15:51:05 -0800
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
_______________________________________________
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