10 Replies Latest reply on Jan 17, 2014 12:20 PM by Antlia Antlia

    Disabling Bean Validation Hibernate 4.2.7

    Antlia Antlia Newbie

      Hi to all,


      I've just migrated from JBoss AS 7.1.1 final, which has Hibernate 4.0.1, to JBoss EAP 6.2.0 which has Hibernate 4.2.7, and I'm experimenting a big issue.


      For disabling Hibernate Validation, with AS 7.1.1, it was sufficient to add the tag <validation-mode>NONE</validation-mode> to the persistence.xml file in my EJB project.


      In JBoss EAP 6.2.0 this tag isn't working anymore, and the beans are validated by Hibernate.


      I've also tried to substitute <validation-mode> tag with <property name="javax.persistence.validation.mode" value="none"/>, but this is not working too.


      Can someone tell me how to disable hibernate validation with this version of hibernate (and JBoss)?