-
Jun 21st, 2011, 02:43 PM
#1
hibernate validator turn off auto validate
I want to validate an entity , I decided to use hibernate validator as it is most recommended , My application uses hibernate for persistence.
I thought using hibernate validator will not trigger automatic validation on save or update of an entity ,does it trigger automatically if my entity has annotations like @NotEmpty etc ?I donot want hibernate to call validation on my entity , can I control this , I want to use validation only in some special cases not every time I update or save .
-
Jun 22nd, 2011, 01:51 PM
#2
It is not very closely related with Spring
I suggest you read the Hibernate Validator documentation and post this question on Hibernate Forums
I could assume a flag could be activated or turn off about validation when you are calling some Hibernate DAO like save update, etc
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules