-->
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.  [ 3 posts ] 
Author Message
 Post subject: key not-null, SAX exception
PostPosted: Sat Feb 12, 2005 2:50 pm 
Beginner
Beginner

Joined: Wed Jan 26, 2005 5:34 am
Posts: 41
Location: France, Paris
Hibernate version: hibernate-3.0beta4b

A part of my mapping document :

<class name="Med" table="med">
<id name="SQLId" column="msl_id" type="long" unsaved-value="null">
<generator class="native"/>
</id>
<bag name="attributes" table="attribute" cascade="all,delete-orphan">
<key column="msl_id" not-null="true"/>
<one-to-many class="Med$Attribute"/>
</bag>
</class>


I've the following error, which disappears if i remove 'not-null="true"' on the key element; any idea ?

524 [main] DEBUG org.hibernate.util.DTDEntityResolver - found http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
742 [main] ERROR org.hibernate.util.XMLHelper - Error parsing XML: XML InputStream(18) Attribute "not-null" must be declared for element type "key".

_________________
Vincent


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 7:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Apparently you are pulling an out-of-date version of the DTD from somewhere.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 8:14 pm 
Beginner
Beginner

Joined: Wed Jan 26, 2005 5:34 am
Posts: 41
Location: France, Paris
Yes, i loaded the dtd from hibernate3-beta3.jar, thx.

_________________
Vincent


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

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.