Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. 1. Entity classes should have default constructor.|
2. Entity classes should be declared non final.
3. All elements to be persisted should be declared private and should have public getters and setters in the Java Bean style.
4. All classes should have an ID that maps to Primary Key for the table.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  hibernate   entity classes hibernate|
|What is Lazy Initialization in Hibernate ?|
|What are the ways to avoid LazyInitializationException ?|
|Difference between first level and second level cache in hibernate ?|
|Which annotations are used in Hibernate ?|
|What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?|
|What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?|
|How to configure second level cache in Hibernate ?|
|What is the use of @GeneratedValue annotation in Hibernate?|
|What are the advantages of Hibernate ?|
|What is the purpose of dialect configured in Hibernate configuration file ?|