title: How do you turn off Hibernate bean validation with JPA 1.0?
body: <p>How do you turn off bean validation with Hibernate 3.x in a JPA 1.0 environment?</p>
  
  <p>I tried several things with persistence.xml:</p>
  
  <pre><code>&lt;persistence-unit name="bbstats" transaction-type="RESOURCE_LOCAL"&gt;
    &lt;properties&gt;
  
      DB stuff
  
      &lt;property name="javax.persistence.validation.mode" value="none" /&gt;
      &lt;property name="hibernate.validator.autoregister_listeners" value="false" /&gt;
    &lt;/properties&gt;
    &lt;validation-mode&gt;NONE&lt;/validation-mode&gt;
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p>The last one causing</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>But nothing of the above work. Can anyone tell me how to do it on a JPA 1.0 implementation?</p>