hibernate Instantiation Exception: No default constructor for entity
May 13, 2012
Posted by on
In Java, the compiler will always supply a default constructor unless you define the constructor yourself. If your POJO has a constructor that takes arguments, then you don’t have a default constructor, and how can Hibernate instantiate this? Where does it get the values for the constructor from?
All your Hibernate classes must have a constructor that doesn’t take any parameters.