Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in parsing mapping document.

 
Siddharth Bhargava
Ranch Hand
Posts: 274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should

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

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

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic