what is the purpose and activity of SessionFactory in
hibernate?
Answer Posted / rajan
To Create Session object to use hibernate in an
application SessionFactory is required.
When buildSessionFactory()method is called hibernate
decides about various sql statements,that has to be used to
access various tables and creates SeessionFactory object.
This operation is expensive and it should be used only once.
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
What is javaserver pages (jsp)?
What is the latest framework in java?
What are java front end tools?
Is java still slow?
What are different modules in spring?
What do you mean by the component contract?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
What is j2ee called now?
Which package is imported by default in java?
What is full form of j2ee?
What is component in java with example?
How many types of modules is defined by j2ee specification?
Why is java considered dynamic?
What is document root?
What is caller principal?