- What are the advantages of Hibernate over JDBC?
- What are some of the important interfaces of Hibernate framework?
- What is a Session in Hibernate?
- What is a SessionFactory?
- What do you think about the statement - “session being a thread-safe object”?
- Can you explain what is lazy loading in hibernate?
- What can you tell about Hibernate Configuration File?
- How do you create an immutable class in hibernate?
- Can you explain the concept behind Hibernate Inheritance Mapping?
- Is hibernate prone to SQL injection attack?
- Explain hibernate mapping file
- What are the most commonly used annotations available to support hibernate mapping?
- Explain Hibernate architecture
- What is criteria API in hibernate?
- What is HQL?
- What does session.lock() method in hibernate do?
- When is merge() method of the hibernate session useful?
- Collection mapping can be done using One-to-One and Many-to-One Associations. What do you think?
- Can you tell the difference between setMaxResults() and setFetchSize() of Query?
- Does Hibernate support Native SQL Queries?
- What is the difference between first level cache and second level cache?
- Can you tell the difference between getCurrentSession and openSession methods?
- Differentiate between save() and saveOrUpdate() methods in hibernate session.
- Differentiate between get() and load() in Hibernate session
- List some of the databases supported by Hibernate.
- What happens when the no-args constructor is absent in the Entity bean?
- Can we declare the Entity class final?
- What are the states of a persistent entity?
- Explain Query Cache
- Can you tell something about the N+1 SELECT problem in Hibernate?
- How to solve N+1 SELECT problem in Hibernate?
- What are the concurrency strategies available in hibernate?
- What is Single Table Strategy?
- Can you tell something about Named SQL Query
- What are the benefits of NamedQuery?
- How to complete a transaction in Hibernate?
- Can you touch upon the different types of relationships available in Hibernate mapping?
- What is the purpose of Session.beginTransaction()?
- Where is object/relational mappings defined in Hibernate?
- What is lazy loading?
- What are the ways to express joins in HQL?
- How would you define automatic dirty checking?
- Explain the different ways Hibernate manages concurrency?
- Can you detail out the various collection types in Hibernate?
- Explain the difference between hibernate and Spring?
- What is meant by Hibernate tuning?
- What is Transaction Management in Hibernate? How does it work?
- How do you integrate Hibernate with Struts2 or Servlet web applications?
- What are the different states of a persistent entity?
- How can the primary key be created by using Hibernate?
- Explain about Hibernate Proxy and how it helps in Lazy loading?
- How can we see Hibernate generated SQL on console?
- What is Query Cache in Hibernate?
- What is the benefit of Native SQL query support in Hibernate?
- What is Named SQL Query?
- When do you use merge() and update() in Hibernate?
- Difference between get() vs load() method in Hibernate?
- Difference between the first and second level cache in Hibernate?
- Difference between Session and SessionFactory in Hibernate?
- Difference between save() and saveOrUpdate() method of Hibernate?
- Difference between sorted and ordered collection in Hibernate?
- Difference between the transient, persistent and detached state in Hibernate?
- Difference between managed associations and Hibernate associations?
- What are the best practices that Hibernate recommends for persistent classes?
- What are the best practices to follow with Hibernate framework?
- How do we create session factory in hibernate?
- What is criteria API?
- How can we get hibernate statistics?
- What are the advantages of Hibernate?
- What is “persistence”?
- Name some databases that Hibernate supports.
- What design patterns does the Hibernate framework use?
- Name the states that a persistent entity exists in.
- How many ways can an object be fetched from Hibernate’s database?
- How many ways can you disable Hibernate’s second-level cache?
- How to create database applications in Java with the use of Hibernate?
- Can you explain the "version field"?
- What are your views on the function addClass?
- Can you explain the role of addDirectory() and addjar() methods?
- What are your thoughts on file mapping in Hibernate?
- File mapping is the core function of Hibernate. It is a prime tool in database mapping. Typically, the mapping takes place between attributes and classes. Application of tags, after mapping the files in a database, can indicate the primary key.
- Can you share your views on mapping description files?
- What is a polymorphic association?
- What is the difference between load and get method in hibernate?
- Is hibernate Sessionfactory Singleton?
- What is the use of dialect in hibernate?
- What is the use of Show_sql in hibernate?
- Is Sessionfactory immutable?
- Is Hibernate configuration file mandatory?
- What is meant by annotation in hibernate?
- What does hibernate.hbm2ddl.auto create means?
- What is the use of projection in hibernate?
- Can I disable first level cache in hibernate?
- What is the use of bag in hibernate?
- What is the use of Mappedby in hibernate?
- What is inverse true in hibernate?
- What is a bidirectional relationship?
- What is JMX in Hybernate?
- How to bind hibernate session factory to JNDI?
- What are the fetching strategies in hibernate?
- What are derived properties in hibernate?
- What is version property in hibernate?
- What does session lock () method do in hibernate?
- What does evict do in hibernate?
- What is table per concrete class in hibernate?
- What is light object mapping in hibernate?