-->
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: Error in created hibernate console configuration
PostPosted: Tue Jan 31, 2006 2:51 am 
Newbie

Joined: Tue Jan 31, 2006 2:30 am
Posts: 12
Hibernate version: 3.1.1
Hibernate Tools version: 3.1.0 beta
Eclipse version: 3.1.0

I am new to hibernate and I am having problems when refreshing the hibernate console configuration I created.

I initially added hibernate core to eclipse. Then followed the "Introduction to Hibernate" tutorial up to section 1.3.3. This means that my project directory looks like this

hibernate_test
+ src
+ util
- HibernateUtil.java
+ persons
- Person.hbm.xml
- Person.java
+ events
- Event.hbm.xml
- Event.java
- EventManager.java
- hibernate. cfg.xml
- log4j.properties

And my hibernate confuguration file has the following mapping resource
<mapping resource="events/Event.hbm.xml"/>
<mapping resource="persons/Person.hbm.xml"/>

After trying out the tutorial, I tried to integrate the hibernate tools to eclipse. Then, I created a hibernate console configuration and set the mapping files to the ones I created. However, when I order refresh on the console configuration, i get the error:

Error while fetching children
org.hibernate.MappingException: Resource: events/Event.hbm.xml not found
<No message>

What changes should I do so the console configuration will see the mapping file I created?

Thanks!

_________________
When all else fails - fresh tactics!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 3:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
your build directory should be in the console configuration path so it can see the resources.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 5:20 am 
Newbie

Joined: Tue Jan 31, 2006 2:30 am
Posts: 12
Thanks!

I added the build directory which was
/hibernate_test/bin
to the classpath list of the console configuration.

_________________
When all else fails - fresh tactics!


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.