Hibernate Interview Questions
Questions Answers Views Company eMail

Why do we need transactions in hibernate?

139

What is the difference between sessionfactory and session in hibernate?

180

What is the difference between jpa and hibernate?

275

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

148

Difference between first level and second level cache in hibernate?

164

Which class elements are not persisted?

131

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

189

Can we declare entity class as final?

165

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

176

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?

230

Different types of hibernate instance states?

206

What are the the methods to clear cache in hibernate?

157


Post New Hibernate Questions

Un-Answered Questions { Hibernate }

What is an orm tool?

168


What is a bidirectional relationship?

137


What is formatting in design pattern?

139


Why hibernate?

241


How do you implement one to one relationship in hibernate with java annotation?

202






Can we write sql query in hibernate?

144


What are the key attributes?

146


Should all the mapping files of hibernate have .hbm.xml extension to work properly?

138


What is cache region?

158


What does hibernate.hbm2ddl.auto create means?

146


What is the use of session in hibernate?

153


What is meant by annotation in hibernate?

166


What is session in hibernate?

182


Why hibernate sessionfactory is thread safe?

145


Which is better save or persist in hibernate?

148