What are the most common methods of Hibernate configuration?
The most common methods of Hibernate configuration are:
  1. Programmatic configuration
  2. XML configuration (hibernate.cfg.xml)
What are the Core interfaces are of Hibernate framework?

The five core interfaces are used in just about every Hibernate application. Using these interfaces, you can store and retrieve persistent objects and control transactions.

  1. Session interface
  2. SessionFactory interface
  3. Configuration interface
  4. Transaction interface
  5. and Criteria interfaces

What Does Hibernate Simplify?
Hibernate simplifies:
  1. Saving and retrieving your domain objects
  2. Making database column and table name changes
  3. Centralizing pre save and post retrieve logic
  4. Complex joins for retrieving related items
  5. Schema creation from object model
What role does the Session interface play in Hibernate?

The Session interface is the primary interface used by Hibernate applications. It is a single-threaded, short-lived object representing a conversation between the application and the persistent store. It allows you to create query objects to retrieve persistent objects.
Session session = sessionFactory.openSession();

Session interface role:
  1. Wraps a JDBC connection
  2. Factory for Transaction
  3. Holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier
What role does the SessionFactory interface play in Hibernate?
The application obtains Session instances from a SessionFactory. There is typically a single SessionFactory for the whole application—created during application initialization. The SessionFactory caches generate SQL statements and other mapping metadata that Hibernate uses at runtime. It also holds cached data that has been read in one unit of work and may be reused in a future unit of work.
SessionFactory sessionFactory = configuration.buildSessionFactory();