Interviewer And Interviewee Guide

Hibernate Interview Question:

What is a SessionFactory? Is it a thread-safe object?

Submitted by: Administrator
SessionFactory is Hibernates concept of a single datastore and is threadsafe so that many threads can access it concurrently and request for sessions and immutable cache of compiled mappings for a single database. A SessionFactory is usually only built once at startup. SessionFactory should be wrapped in some kind of singleton so that it can be easily accessed in an application code.
Submitted by: Administrator

Read Online Hibernate Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.