Hello, I've been trying using my MiddleGen generated mapping file, but Hibernate keeps complaining about this file
Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/ http://hibernate.sourceforge.net/-->
<class
name="com.sgam.tanis.hibernate.VTnsUniverse"
table="V_TNS_UNIVERSE"
>
<property
name="universeId"
type="long"
column="UNIVERSE_ID"
not-null="true"
length="12"
/>
<property
name="universeName"
type="java.lang.String"
column="UNIVERSE_NAME"
not-null="true"
length="60"
/>
<property
name="fprivate"
type="boolean"
column="PRIVATE"
not-null="true"
length="1"
/>
<property
name="owner"
type="java.lang.String"
column="OWNER"
not-null="true"
length="60"
/>
<property
name="structureId"
type="long"
column="STRUCTURE_ID"
not-null="true"
length="12"
/>
<property
name="structureName"
type="java.lang.String"
column="STRUCTURE_NAME"
not-null="true"
length="60"
/>
<property
name="universeCount"
type="java.math.BigDecimal"
column="UNIVERSE_COUNT"
length="22"
/>
<!-- associations -->
<set name="funds" cascade="all" inverse="false" lazy="true">
<key column="FUND_ID" />
<many-to-many class="com.sgam.tanis.hibernate.VTnsFund" />
</set>
</class>
</hibernate-mapping>
with the following error Message
Quote:
GRAVE: Error parsing XML: XML InputStream(75) 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*))".
Is there a problem with the DTD or am I missing something ?
I use hibernate 2.1 en JDOM provided with the distribution...
Please Help !