Hibernate Interview Questions
Questions Answers Views Company eMail

Why do we need transactions in hibernate?

140

What is the difference between sessionfactory and session in hibernate?

180

What is the difference between jpa and hibernate?

276

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

150

Difference between first level and second level cache in hibernate?

165

Which class elements are not persisted?

133

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

189

Can we declare entity class as final?

167

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

178

How to configure second level cache in hibernate?

182

What is lazy initialization in hibernate?

186

How to do eager loading in hibernate?

223

What is lazy loading / lazy initialization in hibernate?

231

Different types of hibernate instance states?

208

What are the the methods to clear cache in hibernate?

159


Post New Hibernate Questions

Un-Answered Questions { Hibernate }

What is named sql query?

148


Different types of hibernate instance states?

208


How do you define sequence generated primary key in hibernate?

153


What role does the sessionfactory interface play in hibernate?

167


What is proxy object in hibernate?

203






What is automatic dirty checking in hibernate?

175


What is session evict in hibernate?

157


What is hibernate database?

159


Why do you need orm tools like hibernate?

173


What is session in hibernate?

183


What is a hibernate xml mapping document and how does it look like?

176


What is evict method in hibernate?

177


How to integrate hibernate and spring?

160


What are the main advantages of orm like hibernate?

128


What is first level cache in hibernate?

166