Comment désactiver la veille prolongée bean validation avec JPA 1.0?

Comment désactiver bean validation avec Hibernate 3.x dans une JPA 1.0 environnement?

J'ai essayé plusieurs choses avec persistence.xml:

<persistence-unit name="bbstats" transaction-type="RESOURCE_LOCAL">
  <properties>

    DB stuff

    <property name="javax.persistence.validation.mode" value="none" />
    <property name="hibernate.validator.autoregister_listeners" value="false" />
  </properties>
  <validation-mode>NONE</validation-mode>
</persistence-unit>

Le dernier causant

org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'validation-mode'. One of '{"http://java.sun.com/xml/ns/persistence":jta-data-source, "http://java.sun.com/xml/ns/persistence":non-jta-data-source, "http://java.sun.com/xml/ns/persistence":mapping-file, "http://java.sun.com/xml/ns/persistence":jar-file, "http://java.sun.com/xml/ns/persistence":class, "http://java.sun.com/xml/ns/persistence":exclude-unlisted-classes, "http://java.sun.com/xml/ns/persistence":properties}' is expected.

Mais rien de le travail ci-dessus. Quelqu'un peut me dire comment le faire sur une JPA 1.0 mise en œuvre?

InformationsquelleAutor Kawu | 2010-08-15