Results 1 to 2 of 2

Thread: hibernate validator turn off auto validate

  1. #1

    Default 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 .

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    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
  •