On 05/16/2012 01:40 PM, Andrej Golovnin wrote:
Hi Emmanuel,
> javax.persistence.validation.mode NONE
>
> should already do that ie disable the integration between JPA and Bean Validation. If
that's not the case, there is a bug somewhere but I could not spot it.
>
> However, Bean Validation has to be activated by the EE container as per the spec. But
the "lazy" validator factory should mean that Hibernate Validator is not
bootstrapped unless it is used somewhere.
I have got it. Adding<property name="javax.persistence.validation.mode"
value="NONE"/>
to persistence.xml has no effect at all.
org.jboss.as.jpa.puparser.PersistenceUnitXmlParser assumes that the validation mode would
be defined
in the persistence.xml by the tag "validation-mode". This tag has been added in
JPA 2.1 which is not yet
final. Solution: add<validation-mode>NONE</validation-mode> to
persistence.xml, although it violates
the persistence_2_0.xsd schema. At least it works for me now. :-)
Validation-mode is part of the JPA 2.0 spec and its not a property.
Try adding:
<validation-mode>NONE</validation-mode>
Best regards,
Andrej Golovnin
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev