permaculture playing cards
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 268
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: 17276



Have a "/" just before the ">"


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: problem in parsing mapping document.
It's not a secret anymore!