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. 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