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!
|