-->
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: I want second constraint to skip if first failed
PostPosted: Tue Apr 12, 2011 11:30 am 
Newbie

Joined: Tue Apr 12, 2011 11:28 am
Posts: 3
Suppose I have 2 constraints on bean property.

Code:

Code:
@Valid
@MyComplexConstraint
private Bean bean;

Even if @Valid fails, @MyComplexConstraint is calculated. How can I disable calculating MyComplexConstraint in that case?


Top
 Profile  
 
 Post subject: Re: I want second constraint to skip if first failed
PostPosted: Sun May 01, 2011 5:09 pm 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

did you already have a look at Bean Validation's concept of validation group sequences? You might also be interested in Hibernate Validator's "fail fast" option which will be introduced with HV 4.2 (see Hardy's post on the Beta release for more information).

-- Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


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