-->
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.  [ 2 posts ] 
Author Message
 Post subject: Constraint on more columns
PostPosted: Tue Jan 26, 2010 3:57 am 
Newbie

Joined: Mon Jan 25, 2010 10:39 am
Posts: 4
Hi all,
is there any possibility to make constraint annotation or something similar no more than one column.
Here is my problem:
I have one table with some columns and i want to be sure that user fill only one column, not more and not less than one. Is there possilbility to make it with Hibernate annotations?
Thanks for your ideas
With regards Michal


Top
 Profile  
 
 Post subject: Re: Constraint on more columns
PostPosted: Wed Jan 27, 2010 7:17 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I guess Hibernate Validator will support such features as you need, see
https://www.hibernate.org/459.html


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.