-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to do a validation with a condition?
PostPosted: Sun Oct 04, 2009 7:14 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
I need to validate a postal code which varies based on country. How to do a such validation with the bean annotation approach?


Top
 Profile  
 
 Post subject: Re: How to do a validation with a condition?
PostPosted: Tue Oct 06, 2009 4:16 am 
Newbie

Joined: Thu Aug 27, 2009 8:21 am
Posts: 13
Take a look at the conversation here:

https://forum.hibernate.org/viewtopic.php?f=26&t=998743


Top
 Profile  
 
 Post subject: Re: How to do a validation with a condition?
PostPosted: Tue Oct 06, 2009 6:28 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
bryan.dollery wrote:
Take a look at the conversation here:

https://forum.hibernate.org/viewtopic.php?f=26&t=998743


Thanks for the information.

It, however, make the matter more complicated. My project is built on Spring. With the old style Spring 1.0 validator, I can do the validation straight forward. The Bean validatior framework seems only for simple attribute validation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.