title: JPA one-to-one mapping gives sax parse exception
body: <p>I'm getting org.xml.sax.SAXParseException's when trying to map a one-to-one relation in JPA</p>
  
  <p>Everything is working fine until I change from </p>
  
  <blockquote>
    <p><code>&lt;transient name="testCase"/&gt;</code></p>
  </blockquote>
  
  <p>to:</p>
  
  <pre><code>&lt;attributes&gt;
  ..
      &lt;one-to-one name="testCase"&gt;
          &lt;join-column name="test_case_id"/&gt;
      &lt;/one-to-one&gt;
  ..
  &lt;/attributes&gt;
  </code></pre>
  
  <p>Gives error:</p>
  
  <p>Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'one-to-one'. One of '{"http://java.sun.com/xml/ns/persistence/orm":many-to-many, "http://java.sun.com/xml/ns/persistence/orm":embedded, "http://java.sun.com/xml/ns/persistence/orm":transient}' is expected.</p>
  
  <p>I don't understand what the exception message means. Why is these expected for this?</p>