Hibernate Interview Questions
Questions Answers Views Company eMail

Why do we need transactions in hibernate?

215

What is the difference between sessionfactory and session in hibernate?

269

What is the difference between jpa and hibernate?

379

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

236

Difference between first level and second level cache in hibernate?

259

Which class elements are not persisted?

215

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

281

Can we declare entity class as final?

262

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

278

How to configure second level cache in hibernate?

268

What is lazy initialization in hibernate?

274

How to do eager loading in hibernate?

312

What is lazy loading / lazy initialization in hibernate?

335

Different types of hibernate instance states?

314

What are the the methods to clear cache in hibernate?

272


Post New Hibernate Questions

Un-Answered Questions { Hibernate }

What is the use of orm in java?

266


Can we update primary key in hibernate?

327


What are session methods in hibernate?

247


What is inversejoincolumns?

235


Why we are using jpa annotation instead of hibernate?

232


How is sql query created in hibernate?

254


How to call stored procedure in hibernate with out parameter example?

233


What is shared primary key?

424


Why we use named query in hibernate?

264


Difference between first level and second level cache in hibernate?

259


What is a many-to-one association in hibernate?

282


How to create two same tables in different schema’s by using single configuration file?

246


Why are callback interfaces useful in hibernate?

278


Is hibernate framework?

365


What are the annotations used in hibernate?

263