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?
Create Session Variable PHP
How to create sessionfactory in Hibernate 4.1.1?
we can create our own header file in java?n how to create?
How do I use JGraph to create a MST(minimum spanning tree) using java?
What is the main feature of Hibernate3?
Feature of Hibernate3
I need hibernate session factory example.
how to do this?
How can I create sessionfactory in Hibernate?
How to create sessionfactory in Hibernate 4.1?
How do you do data mining projects?
Hibernate : Stateless Session
Hibernate Session Management
How to do url rewritting?
Why do we use ORM?
How to create a class in java
Do we have AI yet?
how to do gui

Ads