Suppose, I have a domain object that contains a field with an UNIQUE constraint annotation written by me. Now, I added a new entity of this object by a form and it works. Next, I want to update this saved entry using the same domain object with constraint annotations. I want to change some fields except the field with the UNIQUE constraint. My problem is that I can't update it because the UNIQUE constraint disables it.
How can I suppress this UNIQUE constraint to perform the update? Any advices will be appreciated.
English isn't my first language. Sorry.
|