Hibernate / Hibernate interview questions II
What happens when Hibernate Entity bean has no no-args constructor?
Hibernate will fail to instantiate the entity bean and issues HibernateException.
Hibernate uses Reflection API Class.newInstance() to create instance of Entity beans that requires requires no-args constructor, usually when you call get() or load() methods. The instance of the entity bean cannot be created when there is no no-arg (default) constructor.
More Related questions...