File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "problem in parsing mapping document." Watch "problem in parsing mapping document." New topic
Author

problem in parsing mapping document.

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 266
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(SaveExample.java:47)
Could not parse mapping document from resource address.hbm.xml


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

Joined: Feb 05, 2001
Posts: 17250
    
    6

Should

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

Have a "/" just before the ">"
?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Consider Paul's rocket mass heater.
 
subject: problem in parsing mapping document.