Define the session factory interface in hibernate?

Define the session factory interface in hibernate?

Define the session factory interface in hibernate?

View Answers

June 11, 2012 at 6:23 PM

Session factory is used for manageing the session objects.public interface SessionFactory extends Referenceable, Serializable.It is in org.hibernate.SessionFactory.

It works as a factory for session and a client of connection provider. It also holds an optional cah of data that is reusable between transactions at a process, or cluster.

There is single sessionFactory for each database.

SessionFactory sessionFactory = configuration.buildSessionFactory();

Ads









Related Tutorials/Questions & Answers:
Define the session factory interface in hibernate?
Session Factory
Advertisements
Session Interface in hibernate.
Given a list of methods for a stateful or stateless session bean class, define which of the following operations can be performed from each of those methods: SessionContext interface metho
How do we create session factory in hibernate?
Feature of Hibernate3
Why to use Session interface in Hibernate?
How to create Hibernate session factory name?
I need hibernate session factory example.
What is the main feature of Hibernate3?
Hibernate 4 create Session Factory: Example of creating Session Factory in Hibernate 4
Identify the interface and method for each of the following: retrieve the session bean's remote home interface, retrieve the session bean's local component interface, determine if the sessio
The interface keyword
Introduction to List and Queue Interface
interface
interface.
interface
Define HibernateTemplate?
INTERFACE
interface
Session
session
session
interface
session
interface
interface
interface
interface
Interface
interface

Ads