• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in parsing mapping document.  RSS feed

 
Ranch Hand
Posts: 280
  • 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 ....
 
ranger
Sheriff
Posts: 17314
11
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
Boost this thread!