Search Interview Questions
| 3358 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. The error states that Hibernate is not able to initialize proxy / dependent entity objects as there is no session or transaction present. Very likely we are trying to load the dependent entities lazily but the call to dependent object property is not wrapped within the session or transaction.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  Lazy Loading  Lazy Initialization  org.hibernate.LazyInitializationException|
|What is Lazy Initialization in Hibernate ?|
|What are the ways to avoid LazyInitializationException ?|
|Difference between first level and second level cache in hibernate ?|
|How to configure second level cache in Hibernate ?|
|What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?|
|Which annotations are used in Hibernate ?|
|What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?|
|What are the advantages of Hibernate ?|
|What is the purpose of dialect configured in Hibernate configuration file ?|
| Please specify in what sequence the objects of following classes will be created ?|
Session , SessionFactory, Query , Configuration