-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Error parsing MiddleGen generated XML mapping file
PostPosted: Fri May 28, 2004 10:48 am 
Newbie

Joined: Fri May 28, 2004 10:31 am
Posts: 4
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 !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.