Why default constructor required in hibernate persistence class ?
brajeshkumar
Moderator
moderator
Expertise:
--
Posts:
214
Points:
--
From:
--, --

Why default constructor required in hibernate persistence class ?





hablu
Administrator
admin
Expertise:
--
Posts:
407
Points:
--
From:
--, --

To initializing the persistence class hibernate calls newInstance() method that leads to a mandatory no-argument constructor in a persistence class.

Similar Questions
What is LAZY LOADING in hibernate ?

What are the advantages of hibernate over JDBC ?

What is second level cache in hibernate ?

What is n+1 problem in hibernate and how to fix it ?

How to implement JOIN through Criteria in Hibernate ?Give Example