Friday, December 27, 2013

org.hibernate.HibernateException: Javassist Enhancement failed




org.hibernate.HibernateException: Javassist Enhancement failed
[main] INFO org.hibernate.event.def.DefaultLoadEventListener - Error performing load command
org.hibernate.HibernateException: Javassist Enhancement failed: entities.Employee

Problem: In Employee POJO class i missed out the default constructor.

Solution: This Exception is generated by Hibernate if no default constructor is available in entity class. here in entities.Employee class, the constructor Employee() must available in class.

0 comments: