- In hibernate, the Session interface wraps a JDBC connection, holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier and is a factory for Transaction
- Session session = sessionFactory.openSession();
- The Session interface is the primary interface used by Hibernate applications.
- It is a single-threaded, short-lived object representing a conversation between the application and the persistent store.
- It allows you to create query objects to retrieve persistent objects.
Wednesday, 31 October 2012
Explain the role of Session interface in Hibernate.
Subscribe to:
Post Comments (Atom)
What is Map Collection?
A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...
-
Sure, here is an example program in Java that swaps two characters in a string: public class StringSwapExample { public static void main...
-
import java.util.*; //class RemoveDuplicateCharatcersFromString = Main9 class Main9 { public static String removeDuplicates(String s) {...
-
// * execute without main method Program *// class Maind { static { System.out.println("Hello execute without main method."); ...
No comments:
Post a Comment