Why default constructor is required in hibernate?



Why default constructor is required in hibernate?..

Answer / Ashish Kumar Pankaj

A default constructor is required in Hibernate because it is used by the framework to instantiate entity objects. The default constructor must be accessible, meaning it cannot be private or protected.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Can I disable first level cache in hibernate?

1 Answers  


How to insert data into database using spring mvc and hibernate?

1 Answers  


How to retrieve data from database using hibernate criteria?

1 Answers  


What is hibernate caching? Explain hibernate first level cache?

1 Answers  


How many sessionfactory and session objects are usually created?

1 Answers  


What is meant by unidirectional and bidirectional?

1 Answers  


What is transaction management in hibernate?

1 Answers  


What are the benefits of ORM?

1 Answers  


What is the need for hibernating tools when orm tools can be used?

1 Answers  


Is hibernate lazy load by default?

1 Answers  


What is the default cache service of hibernate?

1 Answers  


What is the difference between merge and update method?

1 Answers  


Categories