You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by amit charaya <of...@palinfocom.net> on 2007/07/26 08:40:47 UTC
how can i set constraint
how can i set a column constraint on table so that it accepts unique values
only
--
View this message in context: http://www.nabble.com/how-can-i-set-constraint-tf4149619.html#a11804971
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: how can i set constraint
Posted by Jacques Le Roux <ja...@les7arts.com>.
Just create a isUnique method in UtilValidate Class and set the validate atribute in your entity with it.
There is another way creating a new field type : BTW this might be contributed, just create a Jira issue and a patch ;o)
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
Jacques
De : "amit charaya" <of...@palinfocom.net>
>
> how can i set a column constraint on table so that it accepts unique values
> only
> --
> View this message in context: http://www.nabble.com/how-can-i-set-constraint-tf4149619.html#a11804971
> Sent from the OFBiz - User mailing list archive at Nabble.com.