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+PracticesJacques
De : "amit charaya" <
[hidden email]>
>
> 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.