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

Define the session factory interface in hibernate?

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 Pages:
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
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
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
Session
Session   how to session maintaining in servlet with use of hidden fieds
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  Session management in Java
Session
Session  How fined session is new or old
Error in simple session bean ..................
Error in simple session bean ..................  Hi friends, i am trying a simple HelloWOrld EJb on Websphere Applicatiopn server 6.1. Can any...;em>CONTEXT</em>FACTORY
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 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 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  Which methods can be invoked by the container on a stateless session bean
session
session   explain sessioln tracking in jsp and display program
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  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
;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  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
session  how can transfer data of one page to another page using session in java swing
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
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
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
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
Spring Set Factory
Spring Set Factory Ths SetFactoryBean is a simple factory for shared Set instance. The set element is defined in the xml bean definitions. The setSourceSet method set the source Set which is written in xml list element
Parsing XML using Document Builder factory - XML
Parsing XML using Document Builder factory  Hi , I am new to XML . I am trying to parse a XML file while is : For this i am using Document builder factory parser . This is required inside a STAX job.The development env
PHP Factory Method
PHP Factory Method: It is very common problem that sometimes we need to change.... In this case factory pattern helps us a lot. The factory method is a class... to do is change the factory.  It is advisable that we should always use
Session in Php
Session in Php   What Is a Session
session hanling
session hanling  session handling in facelets/jsf
GoF Factory Method in writing GUIs - Java Tutorials
GoF Factory Method in writing GUIs 2003-07-14 The Java Specialists' Newsletter [Issue 074] - GoF Factory Method in writing GUIs Author: Dr. Heinz M..., even though it will be an optional standard in J2EE. GoF Factory Method
how can i do group tagging in portlet factory
how can i do group tagging in portlet factory  how can i do group tagging in portlet factory
Factory Pattern
Factory Pattern       I.  Factory Pattern:  One of the goals of object-oriented design... specifically the Factory Pattern tries to  resolve out such issues. Factory
session handling
session handling  how we can handle session in core java
Session management
Session management  How To Maintain Session in jsp for Online exam project
session Maintainess
session Maintainess  how to maintain session in struts 2
php session
php session  what is session
Terminate the session
Terminate the session  How to terminate the session
session tracking
session tracking  What are the common mechanisms used for session tracking?    Cookies SSL sessions URL- rewriting
session invalidate.
session invalidate.  how to invalidate session? i am calling session.invalidate()but not working
Session control
Session control  Could we make session control in JSP language without having any help of other framework
Session Mamangemnt
Session Mamangemnt  Hi all.. I want invalidate the the session for an element in an array .. for EX: a[0] has to invalidate rest a[1],a[2]... has to be in session .. please help me out urgent
Session Mamangemnt
Session Mamangemnt  Hi all.. I want invalidate the the session for an element in an array .. for EX: a[0] has to invalidate rest a[1],a[2]... has to be in session .. please help me out urgent
session tracking
session tracking  session tracking is of four type. 1.hidden form field 2.url rewriting 3.http session interface 4.cookies. please explan the third type with example
Servlet-session
Servlet-session  step by step example on session in servlets
Session Object
Session Object   What is the Max amount of information that can be saved in a Session Object ?   There is no such limit on the amount of information that can be saved in a Session Object. The only limit is the Session
session tracking
session tracking  What are the different ways for session tracking?   Cookies, URL rewriting, HttpSession, Hidden form fields
Session tracking
Session tracking  What are the different ways for session tracking?    Cookies URL rewriting HttpSession Hidden form fields