Hibernate Interview Questions

Hibernate Interview Questions: Hibernate is an Object-Relational Mapping (ORM) solution for Java. It is powerful, highly efficient Object-Relational Persistence and Query Service for any kind of Java application. It maps Java classes to database tables and also from Java data types to Structured Query Language (SQL).

  • What is difference between Getcurrentsession() and Opensession() method in hibernate?
    Hibernate

    Posted By: Carlos P

  • What is open session in hibernate?
    Hibernate

    Posted By: Aden

  • What is the default fetch type in hibernate?
    Hibernate

    Posted By: Isiah

  • Explain dirty checking in hibernate?
    Hibernate

    Posted By: Julius

  • What is Evict in hibernate?
    Hibernate

    Posted By: atul

  • What are JPA Annotation?
    Hibernate

    Posted By: Jihen Fourati

  • How can we invoke stored procedures in hibernate?
    Hibernate

    Posted By: Elick

  • What is difference between session.get() and session.load() method in hibernate?
    Hibernate

    Posted By: Andre

  • List few disadvantages of hibernate?
    Hibernate

    Posted By: Jabez

  • What is a proxy in hibernate?
    Hibernate

    Posted By: Harold

  • Explain how Caching works in Hibernate?
    Hibernate

    Posted By: Press

  • What is use of Hibernate QBC API?
    Hibernate

    Posted By: jerrycolquhoun

  • What is Light Object Mapping in Hibernate?
    Hibernate

    Posted By: Mat

  • What is ordered collection and sorted collection in Hibernate?
    Hibernate

    Posted By: Manuel

  • What is Hibernate Framework?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Java Persistence API (JPA)?
    Hibernate

    Posted By: Sharad Jaiswal

  • What are the important benefits of using Hibernate Framework?
    Hibernate

    Posted By: Sharad Jaiswal

  • Name some important interfaces of Hibernate framework?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is hibernate configuration file?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is hibernate mapping file?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Hibernate SessionFactory and how to configure it?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Hibernate Session and how to get it?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is the difference between Hibernate Session get() and load() method?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is hibernate caching? Explain Hibernate first level cache?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is difference between Hibernate save(), saveOrUpdate() and persist() methods?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is the difference between sorted collection and ordered collection, which one is better?
    Hibernate

    Posted By: Sharad Jaiswal

  • What are the collection types in Hibernate?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is HQL and what are it benefits?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Query Cache in Hibernate?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Named SQL Query?
    Hibernate

    Posted By: Sharad Jaiswal

  • How to log hibernate generated SQL queries in log files?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Hibernate Proxy and how it helps in lazy loading?
    Hibernate

    Posted By: Sharad Jaiswal

  • How to implement relationships in hibernate?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is cascading and what are different types of cascading?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is HibernateTemplate class?
    Hibernate

    Posted By: Sharad Jaiswal

  • How to integrate Hibernate with Servlet or Struts2 web applications?
    Hibernate

    Posted By: Sharad Jaiswal

  • Which design patterns are used in Hibernate framework?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Hibernate Validator Framework?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is the benefit of Hibernate Tools Eclipse plugin?
    Hibernate

    Posted By: Sharad Jaiswal

  • What is Hibernate? Explain with few advantages?
    Hibernate

    Posted By: swapna

  • What is difference between Lazy Vs Eager fetching?
    Hibernate

    Posted By: sesha

  • What is automatic dirty checking?
    Hibernate

    Posted By: Abel

  • For what Hibernate.cfg.xml file is used?
    Hibernate

    Posted By: Ethan

  • What is Session Factory?
    Hibernate

    Posted By: Appu

  • What are various States of hibernate object?
    Hibernate

    Posted By: Elberkep

  • What is the difference between the first and second level caches in Hibernate?
    Hibernate

    Posted By: Brendan Flood

  • What is difference between update vs merge in Hibernate?
    Hibernate

    Posted By: Sid

  • What is ORM? List the ORM levels available in Hibernate?
    Hibernate

    Posted By: Wm

  • List few core interfaces of the Hibernate framework?
    Hibernate

    Posted By: Buster

  • List the Collection types available in Hibernate ?
    Hibernate

    Posted By: Rudragouda Patil

  • What are the Transaction Isolation Levels?
    Hibernate

    Posted By: Jack

  • How do you create a session object in Hibernate?
    Hibernate

    Posted By: Narendra Gautam

  • List some common JPA annotations used in Hibernate?
    Hibernate

    Posted By: Gregorio

  • What is difference between Get vs Load in Hibernate?
    Hibernate

    Posted By: Ahmed

  • Explain how Save is different from Persist?
    Hibernate

    Posted By: wells fargo car loan

  • What is HQL?
    Hibernate

    Posted By: Herschel

  • List the query types available in hibernate?
    Hibernate

    Posted By: Preston

  • Define cascade and inverse option in one-many mapping?
    Hibernate

    Posted By: Kajal Dave

  • What interface lets you write HQL?
    Hibernate

    Posted By: holothuroid

  • Which annotation is used for sequences in Hibernate?
    Hibernate

    Posted By: paras

  • Bootstrapping in Hibernate is performed by which core interface?
    Hibernate

    Posted By: Shalesh Rana

  • How to create a transaction object in Hibernate?
    Hibernate

    Posted By: Ellison

  • What is a Named SQL Query?
    Hibernate

    Posted By: Wyatt

  • Explain the differences between sorted and ordered collection in hibernate?
    Hibernate

    Posted By: uqtifanano

  • What are the ways to express joins in HQL?
    Hibernate

    Posted By: Durga Prasad adapa

  • What is Hibernate proxy?
    Hibernate

    Posted By: Isaiah

  • List few advantages of Hibernate over jdbc?
    Hibernate

    Posted By: Dell

  • What is JPQL?
    Hibernate

    Posted By: Sylvester

  • What is difference between openSession and getCurrentSession?
    Hibernate

    Posted By: Dennie

  • For what saveOrUpdate() method is used in hibernate?
    Hibernate

    Posted By: binsJok

  • List few Differences between session vs session factory in Hibernate?
    Hibernate

    Posted By: richardnathew

  • How to run hibernate update query?
    Hibernate

    Posted By: ruchi

  • What is flush in hibernate?
    Hibernate

    Posted By: Winfield