-->
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.  [ 9 posts ] 
Author Message
 Post subject: org.hibernate.validator.ClassValidator missing
PostPosted: Sun Mar 28, 2010 4:47 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
Hi,

I had to update my hibernate version due to some damn MySQL errors. I replaces the old validation-lib with "hibernate-validator-4.0.2.GA.jar" but now eclipse can't find the class org.hibernate.validator.ClassValidator. May anybody tell me how to fix that? Additionally "org.hibernate.cfg.AnnotationConfiguration" seems to be problematically. Which jar-file contains this class? I need it for "HibernateUtils". Thanks a lot for any help.

Jonny


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Mon Mar 29, 2010 4:38 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
hibernate-validator-4.0.2.GA.jar requires integration with JPA2
(you can see it in the file META-INF/maven/org.hibernate/hibernate-validator/pom.xml),
so you must use it with hibernate version 3.5 (currently in candidate release phase).


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Mon Mar 29, 2010 5:11 am 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
Oh, thanks a lot. I'll try that ;)


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Sun Apr 04, 2010 10:58 am 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
Hi,

now I am unsing Hibernate Core 3.5 (final) with Hibernate Validator 4.02 but there is no Class ClassValidator ;(
Has there a renaming been taken? I used this code to validate in Hibernate 3.2

Code:
      ClassValidator<T> validator = new ClassValidator<T>(c);
      return validator.getInvalidValues(entity);


Jonny


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Tue Apr 06, 2010 1:42 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
No suggestions?


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Thu Apr 08, 2010 1:38 pm 
Newbie

Joined: Wed Apr 07, 2010 2:36 pm
Posts: 5
Same problem here. No hints to fix it? How you handle validation otherwise?


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Sun Apr 18, 2010 1:11 am 
Newbie

Joined: Sun Apr 18, 2010 1:08 am
Posts: 6
any chance you found a solution to the problem? ClassValidator is missing as well!! i have wasted a day trying to find a solution but no success!


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Sun Apr 18, 2010 1:17 pm 
Newbie

Joined: Wed Apr 07, 2010 2:36 pm
Posts: 5
unfortunately not. I can't believe that nobody used this class before 3.5 so nobody cares now ;(


Top
 Profile  
 
 Post subject: Re: org.hibernate.validator.ClassValidator missing
PostPosted: Mon Apr 19, 2010 12:17 am 
Newbie

Joined: Sun Apr 18, 2010 1:08 am
Posts: 6
i have switched from netbeans to intellij IDEA and it worked!! too bad i wasted full day doing nothing but googling with no luck :-( but then finally i decided to try different IDE, such as JCreator, Eclipse and intellij IDEA, and it worked right away.


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