April 16, 2015 10:48:07 am Org.hibernate.event.internal.DefaultLoadEventListener onLoad
INFO:HHH000327:Error performing load command:org.hibernate.HibernateException:Javassist enhancement failed:com.spri . Entity. User
The reason for the error is that it is shown in user to write a construction method that overrides the original default construction method. The persistence of hibernate is used here, so why does it need a non-parametric construction method because the persistence mechanism of hibernate is reflection, it needs to call newinstance () when it is reflected, The method is to create an instance object by invoking the default constructor method. In this example, I wrote a method of constructing a parameter, the original default method of construction is overwritten, and the original default is no parameter, so we need to show the construction of a parameterless method.
Workaround: Add a non-parametric constructor to user.
Javassist Enhancement failed