-->
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: Where is the org.hibernate.validator ?
PostPosted: Sun Oct 04, 2009 7:08 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
After installed the Hibernate Validator 4.0.0 beta 2 package, I can't get the validator annotation right. For example, I get the org.hibernate.validation.constraints.Length for @Length, but not org.hibernate.validator.Length. And I get javax.validation.constraints.NotNull for @NotNull, but not org.hibernate.validator.NotNull. I can't get the email annotation. What is missing?

My guess is that the org.hibernate.validator is the 3.x version and the org.hibernate.validation is the 4.0 version.


Top
 Profile  
 
 Post subject: Re: Where is the org.hibernate.validator ?
PostPosted: Mon Oct 12, 2009 11:29 am 
Newbie

Joined: Thu Aug 27, 2009 8:21 am
Posts: 13
I downloaded the binaries from sourceforge, and installed them to my local repository using maven. Here's my dependencies:

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.0.CR1</version>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.CR5</version>
</dependency>


This is the most recent version info I can find (as of two weeks ago, which is when I last looked). For more recent changes, you'll have to go to the svn repo.


Top
 Profile  
 
 Post subject: Re: Where is the org.hibernate.validator ?
PostPosted: Mon Oct 12, 2009 12:12 pm 
Regular
Regular

Joined: Tue Feb 17, 2009 3:36 pm
Posts: 78
bryan.dollery wrote:
I downloaded the binaries from sourceforge, and installed them to my local repository using maven. Here's my dependencies:

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.0.CR1</version>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.CR5</version>
</dependency>


This is the most recent version info I can find (as of two weeks ago, which is when I last looked). For more recent changes, you'll have to go to the svn repo.


Thanks for your information.

I lately find that the Validator package doesn't make my life easier when I need it in a web front end input data for some more complex validation logic.


Top
 Profile  
 
 Post subject: Re: Where is the org.hibernate.validator ?
PostPosted: Tue Oct 13, 2009 8:36 am 
Newbie

Joined: Fri Oct 03, 2008 2:30 am
Posts: 16
Location: Neuchâtel, Switzerland
@bryan.dollery: there's no need to install the libraries manually
Code:
<repositories>
  <repository>
    <id>jboss</id>
    <url>http://repository.jboss.com/maven2</url>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
</repository>

<dependencies>
  <dependency>
    <groupId>javax.validation</groupId>
    <artifactId>validation-api</artifactId>
    <version>1.0.0.GA</version>
  </dependency>
  <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-validator</artifactId>
    <version>4.0.0.GA</version>
  </dependency>
</dependencies>


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.