-->
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.  [ 5 posts ] 
Author Message
 Post subject: Could not parse mapping document from resource
PostPosted: Thu Jan 04, 2007 2:00 am 
Newbie

Joined: Thu Jan 04, 2007 1:52 am
Posts: 6
Hi
i am newbie to hibernate.
I am using Hibernate 3 with Eclipse 3.2.

Well my problem is I am using composite-id in my hbm file.
If i specify name n class its giving me error

Could not parse mapping document from resource...

But if i remove name n class frm composite id it gives me result.
Why so??

Can someone please help me out with this ??

Thanks in advance
Ashwini


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 2:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
way to little info to help...


e.g. are you using Hibernate Tools or using hibernate inside an eclipse application ? What is the stacktrace ? did you include the clasess in the classpath ? etc.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Could not parse mapping document from resource
PostPosted: Thu Jan 04, 2007 3:14 am 
Newbie

Joined: Thu Jan 04, 2007 1:52 am
Posts: 6
Yep i am using Hibernate tools in my eclipse application.I have included them in my class path as well.

Well lil i could find out is we have to change the corresponding map file...by giving the constructor and then override equals and hash methods.. but after that it gives no getters found for rest of the fields.

But i can separately now have composite id for two keys

I am sorry but i have no idea about the stack trace


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 3:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Using hibernate tools in your eclipse application ?

These are not intended for inclusion in your eclipse application and because of eclipse's eclipse classloading "fun" I recommend you do your own bundling of the hibernate libs to use things like buddy classloading etc. to have it work.

...and how can you not know about the stacktrace ? Don't you have it in the eclipse log or can somehow printstacktrace it when it occurs ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 3:51 am 
Newbie

Joined: Thu Jan 04, 2007 1:52 am
Posts: 6
I just removed the name n it worked.


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