This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Could not parse mapping document from resource com/hib/Unit.hbm.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Could not parse mapping document from resource com/hib/Unit.hbm.xml" Watch "Could not parse mapping document from resource com/hib/Unit.hbm.xml" New topic
Author

Could not parse mapping document from resource com/hib/Unit.hbm.xml

Dhanunjaya routu
Greenhorn

Joined: Feb 14, 2011
Posts: 8
Hello!

I had created 3 pojo classes and 3 mapping files.

District.java
Unit.java
and Missing.java

District.hbm.xml
Unit.hbm.xml
Missing.hbm.xml

The primary key of District table is one of the composite primary keys in Unit table and Missing table.
Also primary key of Unit table is one of the composite primary keys in Missing table.

i am getting an error like ::org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/hib/Unit.hbm.xml











Can you help me to avoid the error.....?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could not parse mapping document from resource com/hib/Unit.hbm.xml
 
Similar Threads
Common DAO layer Code Base - Hibernate Mapping XML changes
Foreign Key Must Have the Same Number Of Columns As the Referenced Primary Key
Map an object that has composite id containing a mapping to object that itself has composite id?
Please suggest on this Mapping
Help with mapping set - Hibernate