-->
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.  [ 4 posts ] 
Author Message
 Post subject: Differences between HibernateValidator-3.1.0.GA and 4.0.2.GA
PostPosted: Sun May 23, 2010 4:43 am 
Newbie

Joined: Sun May 23, 2010 4:30 am
Posts: 2
Hi,

Can somebody please let me know the actual differences between or point me a link of the release notes.
HibernateValidator-3.1.0.GA
HibernateValidator-4.0.2.GA

Currently i'm using 3.1.0.GA and need to upgrade to 4.0.2GA (latest version)

Thanks in advance
Murthy


Top
 Profile  
 
 Post subject: Re: Differences between HibernateValidator-3.1.0.GA and 4.0.2.GA
PostPosted: Mon May 24, 2010 6:58 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Have a look at this - What's the difference between Hibernate Validator 3.x and 4.x

Upgrading the actual constraints should not be too hard. Updating the actual validation calls might be more tricky depending how you are using Validator. Do you call the validation framework yourself? Do you use it in conjunction with Hibernate Core and validation occurs on life-cycle events? Or do you use Validator as part of a third part framework? Depending on the situation switching from 3.x to 4.x might be more or less work.

--Hardy


Top
 Profile  
 
 Post subject: Re: Differences between HibernateValidator-3.1.0.GA and 4.0.2.GA
PostPosted: Mon May 24, 2010 1:08 pm 
Newbie

Joined: Sun May 23, 2010 4:30 am
Posts: 2
HI,

I'm using Hibernate validator along with Hibernate Core.
actually i'm upgrading hibernate from 3.3.x to 3.5.2 version, and in this annotations are part of 3.5.2 version.
and so trying to upgrade the Hibernate validator as well.

For eg:
============
The below classes are not available in Hibernate Validator 4.0.2GA version, whereas it is avaialble in 3.1.0GA version

org.hibernate.validator.ValidatorClass
org.hibernate.validator.Length
org.hibernate.validator.NotNull


Thanks
Murthy


Top
 Profile  
 
 Post subject: Re: Differences between HibernateValidator-3.1.0.GA and 4.0.2.GA
PostPosted: Mon May 24, 2010 1:28 pm 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

org.hibernate.validator.ValidatorClass -> obsolete
org.hibernate.validator.Length -> org.hibernate.validator.constraints.Length
org.hibernate.validator.NotNull -> javax.validation.constraints.NotNull

I recommend you check the Hibernate Validator online documentation - http://docs.jboss.org/hibernate/stable/ ... ml_single/

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.