I'm getting a few weird SAXParseExceptions like these when initializing hibernate:
Code:
org.xml.sax.SAXParseException: Attribute "column" must be declared for element type "one-to-one".
org.xml.sax.SAXParseException: Attribute "insert" must be declared for element type "one-to-one".
org.xml.sax.SAXParseException: Attribute "update" must be declared for element type "one-to-one".
My mapping looks like this:
Code:
<class name="drees.Account" table="account">
   <id name="customerId" column="customer_id" type="long">
      <generator class="assigned"/>
   </id>
   <property name="acctNumber" column="acct_number" type="string" not-null="true"/>
</class>
<class name="drees.Customer" table="customer">
   <id name="customerId" column="customer_id" type="long">
      <generator class="identity"/>
   </id>
   <one-to-one name="account"
               column="customer_id"
               insert="false"
               update="false"
               class="drees.Account"
               />
</class>
Obviously the column, insert and update attributes are set.  Any ideas?
Using Hibernate 2.0.3, Java 1.4.2.