-->
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: using Hibernate 2 with JDeveloper (paresing problem)
PostPosted: Tue Sep 23, 2003 7:09 am 
Newbie

Joined: Tue Sep 23, 2003 7:02 am
Posts: 16
I am experiencing a problem that throw this error

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

All I am trying to achieve is a one->many relationship and I am getting this error.

I reseached the problem and found this on the forum

http://forum.hibernate.org/viewtopic.ph ... e+declared

It appears to be the same problem I am having but I do not want to solve it this way. Is there a simple solution to this apparent problem.

I am using JDeveloper to compile and run. There does not seem to be a problem with some of the functiionality I can save a simple object but when I add in the code for a relationship it just falls over

I am a novice to this so please forgive my ignorance.

I am on one of those tight deadline things and would greatly appreciate
any help with this.

Thanks Lee


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

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Quote:
It appears to be the same problem I am having but I do not want to solve it this way

You don't want to solve it the correct way? There are many XDoclet tasks that depend on the vendor version. I use the weblogic vendor tags and the version attribute is very important there.

Are you even using XDoclet? Or are you generating the mapping files by hand?

The issue is that the hibernate DTD changed between version 1x and 2x. Specifically here, the "role" and "readonly" attributes fo the collection elements were renamed to "name" and "inverse" respectively. If you want to run hibernate2, you need to get those attribute names to the correct values...


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.