InterviewSolution
Saved Bookmarks
| 1. |
What is a SessionFactory? |
|
Answer» SessionFactory provides an instance of Session. It is a factory class that gives the Session objects based on the CONFIGURATION PARAMETERS in order to establish the connection to the database. This also provides the facility to get information LIKE statistics and metadata related to a class, query executions, etc. It also holds second-level cache data if ENABLED. |
|