-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Suppressing a constraint annotation
PostPosted: Tue Mar 15, 2011 4:50 pm 
Newbie

Joined: Sat Dec 26, 2009 12:58 pm
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.