Default Constructor in POJO,
June 9, 2009 at 11:14 AM
HIbernate uses reflection to instantiate a POJO class to set the values into it from the DB. SO it does the instantiation using Java Reflection. When a class is instantiated using reflection the class must have a default constructor. Otherwise an exception is thrown.
View All Comments
| View Tutorial