-->
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: Validator api
PostPosted: Thu Mar 25, 2010 8:31 am 
Newbie

Joined: Mon Feb 01, 2010 9:29 am
Posts: 9
in doc on site http://docs.jboss.org/hibernate/stable/ ... lass...%29

Is there any explanation of input parameters for validateProperty, because on site you have old documentation

http://docs.jboss.org/hibernate/stable/ ... dator.html
which is not compatible with api(4.0.2.GA) you provide.

Regards, Tomaz


Top
 Profile  
 
 Post subject: Re: Validator api
PostPosted: Fri Apr 23, 2010 8:27 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
I am not quite sure why you think the javadocs and the online documentation are not compatible. The signature is:

Code:
<T> Set<ConstraintViolation<T>> validateProperty(T object, String propertyName, Class<?>... groups);

where T is the object to validate, propertyName the property name you want to validate (Java Bean notation) and groups is a vararg argument allowing to specify the groups to validate.

In the online documentation example we leave out the groups parameter which implicitly validated the Default group.

I agree however, that the Hibernate Validator javadoc should be linked to a Bean Validation Javadoc.

--Hardy


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.