Hibernate Interview Questions
Questions Answers Views Company eMail

Why do we need transactions in hibernate?

220

What is the difference between sessionfactory and session in hibernate?

275

What is the difference between jpa and hibernate?

387

What are the contents of hibernate configuration file ( hibernate.cfg.xml )?

240

Difference between first level and second level cache in hibernate?

268

Which class elements are not persisted?

221

What is the purpose of dialect configured in hibernate configuration file?

288

Can we declare entity class as final?

268

What entries we make in the hibernate config file if we are not using hbm files but annotations?

288

How to configure second level cache in hibernate?

278

What is lazy initialization in hibernate?

280

How to do eager loading in hibernate?

318

What is lazy loading / lazy initialization in hibernate?

343

Different types of hibernate instance states?

325

What are the the methods to clear cache in hibernate?

280


Post New Hibernate Questions

Un-Answered Questions { Hibernate }

What are the best practices that hibernate recommends for persistent classes.

256


What are the interfaces in hibernate?

315


What are different environments to configure hibernate?

276


What are the different id generating strategies using @generatedvalue annotation?

315


What is cascade persist?

263


How to implement database relationship in hibernate?

252


What are the tags that are importantly used in hibernate configuration file?

309


Why is sessionfactory used in hibernate?

242


What orm means?

222


Why hibernate is used in java?

237


Is hibernate framework good?

277


What are the major benefits of hibernate?

260


How to make a immutable class in hibernate?

270


What is the full form of yaml?

258


What is hibernate and why it is used?

244