jQuery in Action, 2nd edition
The moose likes Object Relational Mapping and the fly likes Mapping fine not found Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Mapping fine not found" Watch "Mapping fine not found" New topic
Author

Mapping fine not found

Harjit Singh
Ranch Hand

Joined: Feb 01, 2007
Posts: 77
Hi there,

I'm getting an exception in my code when I'm trying to create the session factory. In my case the cfg file is in a jar and also the mapping files are in the same jar as the cfg file.

Here is the stack trace and the cfg file



<!-- These are for showing sql on console and SQL comments for debugging -->
<property name="show_sql">true</property>
<property name="use_sql_comments">true</property>
<property name="format_sql">true</property>

<!-- These setting allow flush and session close to happen automatically. Set to true for CMT -->
<property name="transaction.flush_before_completion">true</property>
<property name="transaction.auto_close_session">true</property>


<mapping resource="com/nasd/fms/framework/database/hibernate/config/ChronologyItem.hbm.xml" />


Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16622

And what is your jar structure, and show where those files the cfg and the mapping files are in the jar structure. Maybe a slight typo in the path, or a little different. The cfg goes on the root of the jar file.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Harjit Singh
Ranch Hand

Joined: Feb 01, 2007
Posts: 77
got it.. there was a typo....

- H
 
 
subject: Mapping fine not found
 
Threads others viewed
Migration of Hibernate 2.0 to 3.0
Hibernate : generated attribute of the property element
Migration from Hibernate 2.0 to Hibernate 3.0
InvalidMappingException
Migration of Hibernate 2.0 to 3.0
developer file tools