Hi,
How do we put contraint of a combination of two are more fields has to be unique say phone number and mobile number of a person has to be unique etc.
I do understand @Column(updatable = false, unique = true, nullable = false, length = 50)
would result in one field to be unique. I wish to say here that is xyz filed and abc field to be unique rather than just saying xyz is unique and abc field is unique.
Regards,
Nagendra
_________________ Raja Nagendra Kumar, C.T.O http://www.tejasoft.com TejaSoft - Specialists in Code Audit, Unit Testing and Merciless Re-factoring - Engineering Crisis Turnaround Experts
|