This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes problem in parsing mapping document. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "problem in parsing mapping document." Watch "problem in parsing mapping document." New topic

problem in parsing mapping document.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 248
I am implementing table per concrete class with unions. I have one Abstract class address and 2 subclasses inheriting from it namely - HomeAddess and OfficeAddess.

This is my address.hbm.xml file

The problem that i am getting on running the code is this :

Exception in thread "main" java.lang.NullPointerException
at com.hibernateexample.inheritance.SaveExample.main(
Could not parse mapping document from resource address.hbm.xml

Please help me out and tell me where i am going wrong ....
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249



Have a "/" just before the ">"


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: problem in parsing mapping document.
Similar Threads
Problem with many to one Mapping
Batch Delete Problem
org.hibernate.MappingException: table refers to an unmapped class
One to Many Mapping : org.hibernate.MappingException: Association references unmapped class
Hibernate Issue