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)
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>.