A quick question: is there a stand-alone package for org.hibernate.validator.constraints.*?
I want to put these annotations on a DTO package, but don’t want to force the user to have hibernate-validator on their class path.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t really know what you mean by standalone in this context but here is a link to the
4.3.1version ofhibernate-validator.Adding this to your pom will give you access to all the annotations in
org.hibernate.validator.constraintspackage:mvnrepository.com is a very good place to search for maven artifacts.
Edit
Ok now I understand your question, you only want the annotations in the
org.hibernate.validator.constraintsas a dependency w/o all the other validation stuff.Then my answer is no, there is no such thin jar. You will have to use the
hibernate-validatorto get the annotations.