Search Interview Questions
| 3292 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.
|Hibernate - Interview Questions and Answers for 'Erricson india' - 1 question(s) found - Order By Newest|
|Ans. HBM Files ( Mapping )|
DB Connection ( DB Connection String , User Name , Password , Pool Size )
SQL Dialect ( SQL variant to be generated )
Show SQL ( Show / No show SQL on Console )
Auto Commit ( True / False )
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  hibernate   configuration   barclays Asked in 11 Companies|
|What is the purpose of dialect configured in Hibernate configuration file ?|
|What entries we make in the hibernate config file if we are not using hbm files but Annotations ?|
|What is the use of hbm2ddl Configuration in Hibernate ?|
| If you are given choice to avoid LazyInitializationException using any of the following measures, which are the ones you will choose and why ?|
1. Set lazy=false in the hibernate config file.
2. Set @Basic(fetch=FetchType.EAGER) at the mapping.
3. Make sure that we are accessing the dependent objects before closing the session.
4. Force initialization using Hibernate.initialize