-->
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.  [ 2 posts ] 
Author Message
 Post subject: whats wrong with my setup
PostPosted: Tue Sep 23, 2003 7:48 am 
Newbie

Joined: Tue Sep 23, 2003 7:02 am
Posts: 16
Hi All

I am getting some wierd errors I have investigated the problem and appears that my setup is running version 1 instead of version 2.

I am getting the following error.

<Line 12, Column 17>: XML-0137: (Error) Attribute 'role' used but not declared.

There must be some kind of configuration mistake my end that is causing this.

I am implementing the following mapping xml


<hibernate-mapping>
<class name="immedea.sportal.persistant.beans.Topic" table="topic">
<id name="ID" type="string" unsaved-value="null" >
<column name="ID" sql-type="char(32)" not-null="true"/>
<generator class="uuid.hex"/>
</id>
<set role="article" readonly="true" lazy="true">
<key column="topic_id"/>
<one-to-many class="immedea.sportal.persistant.beans.Article"/>
</set>
</class>
</hibernate-mapping>

I think that this is right but when I compile it gives me the above error.

What am I doing wrong..

I think its looking at version 1 when it should be looking at version 2.

Is there any solution to this problem

Thanks Lee


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 8:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
You might want to check the DTD that Hibernate 2x uses. There is no such attribute named "role" in any of the collection mapping elements. "role" was used in Hibernate 1x; 2x uses "name" instead. Same for "readonly"...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.