• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

org.hibernate.MappingException: Following superclasses referenced in extends not found: null

 
Ranch Hand
Posts: 176
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Employee.java


RegularEmployee


ContractEmployee


StoreData


employee.hbm.xml


hibernate.cfg.xml


Error : Exception in thread "main" org.hibernate.MappingException: Following superclasses referenced in extends not found: null
at org.hibernate.cfg.Configuration.processExtendsQueue(Configuration.java:1200)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1119)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1283)
at com.hibernateinheritancemapping.tableperhierarchy.StoreData.main(StoreData.java:11)


Please advise.
Thanks
 
Ranch Hand
Posts: 182
18
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume you are trying to work on table per class hierarchy . In employee.hbm.xml  close the <class> tag at the end, before the tag </hibernate-mapping>.

and the type is "string" and not "String"

like here below
 
Shubham Semwal
Ranch Hand
Posts: 176
3
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Ramya.
Its working
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shubham Semwal wrote:Thanks a lot Ramya.


That definitely deserves a cow!
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic