Spring 3.1 Hibernate 4 exception for Inheritance [cannot be cast to org.hibernate.mapping.RootClass] June 12, 2023 by Tarik It is due to Id column in both classes. Remove the Id from HumanMicroTask.