Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Session Factory
1 Answer(s)      3 years and 8 months ago
Posted in : Hibernate Interview Questions


Define the session factory interface in hibernate?


Advertisement
View Answers

March 8, 2011 at 11:20 AM


Hi Samar,

The SessionFactory creates new hibernate sessions by referencing immutable and thread safe objects. Application using hibernate are usually allowed and desgined to implement single instance of the class using this interface. SessionFactory is thread safe, so that many threads can access it concurrently and requests the sessions

Session session = HibernateUtil.getSessionFactory().getCurrentSession();



Related Tutorials/Questions & Answers:
Session Factory
Session Factory  Define the session factory interface in hibernate... and requests the sessions. Session session = HibernateUtil.getSessionFactory... access it concurrently and requests the sessions Session session
Define the session factory interface in hibernate?
Define the session factory interface in hibernate?  Define the session factory interface in hibernate?   Session factory is used for manageing the session objects.public interface SessionFactory extends Referenceable
Advertisements
How do we create session factory in hibernate?
How do we create session factory in hibernate?  Hi, How do we create session factory in hibernate? thanks
How to create Hibernate session factory name?
How to create Hibernate session factory name?  Hi, I am new to Hibernate and I would like to learn how to create Hibernate Session factory name? Thanks..   HI, Here we have provided Hibernate Session factory
I need hibernate session factory example.
I need hibernate session factory example.  Hi, I want a simple hibernate session factory example..   hello, Here is a simple Hibernate SessionFactory Example Also go through the Hibernate 4 Thanks
Hibernate 4 create Session Factory: Example of creating Session Factory in Hibernate 4
Hibernate 4 create Session Factory: How to create Session Factory in Hibernate 4? In this tutorial I will explain you how you can create the Session Factory... the session factory has changed. You if you are migrating your application
What is Bean Factory ?
What is Bean Factory ?  Hi, What is Bean Factory ? Thanks
Factory classes in flex
Factory classes in flex  Hi.. What are the factory classes in flex? please give the name of all factory classes....... Thanks
factory methods in java?
factory methods in java?  what are factory methods in java?   Hi Friend, Factory methods are static methods that return an instance of the native class like Pattern.compile(), Calendar.getInstance
What is static factory pattern?
What is static factory pattern?  Hello, please tell me what is static factory pattern? Thank you..   Dear friend, you can go through the following links to better understand the static factory pattern - Factory
session
session  is there any possibility to call one session from another session
session
session  is there any possibility to call one session from another session
Session
Session   how to session maintaining in servlet with use of hidden fieds
session
session  Session management in Java
Session
Session  How fined session is new or old
session
Session Management in PHP  Handling session in PHP. Can anyone please explain it with the help of an existing example about, how to handle a session while a user is logged in PHP
Session
Session   How can we set the inactivity period on a per-session basis?   We can set the session time out programmatically by using the method setMaxInactiveInterval() of HttpSession
session
session   explain sessioln tracking in jsp and display program
session
session  Which methods can be invoked by the container on a stateless session bean
session
session  What mechanisms are used by a Servlet Container to maintain session information?   Servlet Container uses Cookies, URL rewriting, and HTTPS protocol information to maintain the session
Session
Session   hii, What Is a Session?   hello, Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor
session
session  how can transfer data of one page to another page using session in java swing
Session
Session  What Is a Session?   Hi friends, A session... subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved
Session
;A servlet session is created and stored on the server side. The servlet container keeps.... To the maintain the session, Web clients must pass back a valid session.... In this sense, the session is also stored by the client, but only as a token reference
session
session  create multiple login on one page in php but how to use session
Session
Session   why do we need session? actually what stored in a session... and user would not able to retrieve the information. So, Session provides that facility to store information on server memory. 2)Variables are stored in session
JUnit Factory
JUnit Factory       JUnit Factory is an experimental test-generation service from Agitar... generated by JUnit Factory you can bring your legacy code under control. To get
session
session  how to implement login-logout session????   Please visit the following links: http://www.roseindia.net/quickguide/tomcat/Logout.shtml http://www.roseindia.net/jsp/javascriptpagerefresh.shtml http
Abstract Factory Pattern
Abstract Factory Pattern       II Abstract Factory Pattern :  This pattern is one level of abstraction higher than factory pattern. This means that the abstract factory returns
What are difference between Bean Factory and Application Context ?
What are difference between Bean Factory and Application Context ?  Hi, What are difference between Bean Factory and Application Context
Spring List Factory
Spring List Factory Ths ListFactoryBean is a simple factory for shared List instance. The list element is defined in the xml bean definitions. The setSourceList method set the source List which is written in xml list element
 

 

 

DMCA.com