Error text:
22:29:52,078 ERROR [XMLHelper] Error parsing XML: XML InputStream(46) The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,property|many-to-one|one-to-one|component |dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))".
22:29:52,078 ERROR [Configuration] Could not compile the mapping document
hbm-file
<hibernate-mapping>
<class name="package.TheClazz" table="MY_TABLE">
<id name="id" type="int" column="ID" unsaved-value="null"> <generator class="identity"/> </id>
<property name="updateVersion" type="long" column="updateVersion" not-null="true" length="20"/>
<property name="name" type="java.lang.String" column="name" not-null="true" length="50"/>
<property name="homePage" type="java.lang.String" column="homePage" length="100"/>
<version name="updateVersion" column="updateVersion" type="int"/>
</class>
When I remove the version part, it works just fine deploying. When I have it there I get the error.
What's wrong? Can't see the error when looking at the DTD.
Best regards
Lasse
</hibernate-mapping>
|