How do we create session factory in hibernate?

Ads
 

How do we create session factory in hibernate?

Hi,

How do we create session factory in hibernate?

thanks,

View Answers

April 18, 2013 at 12:34 PM

Hi,

At the time of creating an application, we uses Hibernate to get by the application persistence object that require a sessionFacotory. This Session Factory create or open a session to talk to a database. To making a SessionFactory we can specify this configuration in hibernate.properties i.e. hibernate.cfg.xml or create it programatically. In this tutorial you will find detailed concepts with examples.

For details about Hibernate SessionFactory visit this link:

http://www.roseindia.net/hibernate/hibernate4/HibernateSessionFactory.shtml

Thanks,

Ads









Related Tutorials/Questions & Answers:
How do we create session factory in hibernate?
How to create Hibernate session factory name?
Advertisements
How do we create custom component
EJB Deployment how to create a simple ejd session bean and how to do project setup
how to create session for login
How do we create new table apart from mapping with existing table ?
Hibernate 4 create Session Factory: Example of creating Session Factory in Hibernate 4
how can i do group tagging in portlet factory
Session Factory
How do servlets work? Instantiation, session variables and multithreading
how we can create website through java
How many cookie object we can store in a session? is there any limit?
Define the session factory interface in hibernate?
we can create our own header file in java?n how to create?
Create Session Variable PHP
How do I use JGraph to create a MST(minimum spanning tree) using java?
How to create sessionfactory in Hibernate 4.1.1?
What is the main feature of Hibernate3?
how to do this?
Feature of Hibernate3
I need hibernate session factory example.
How can I create sessionfactory in Hibernate?
How to create sessionfactory in Hibernate 4.1?
Why do we use ORM?
Hibernate Session Management
Hibernate : Stateless Session
How to do url rewritting?
How to create a class in java
how to do gui
how to create rdd in pyspark
How do I upgrade mysql?

Ads