what is the purpose and activity of SessionFactory in
hibernate?
Answer Posted / ram nidadavolu
Application obtains session instances from Session Factory.
Only single SessionFactory for the whole application.
SessionFactory caches generate SQL statements and other
mapping metadata that Hibernate uses at runtime.
Cached data that has been read in one unit of work and may
be reused in a future unit of work.
SessionFactory sessionFactory =
Configuration.buildSessionFactory();
Is This Answer Correct ? | 29 Yes | 20 No |
Post New Answer View All Answers
What is event in java?
Why awt is used in java?
What are the most important topics in java?
What are the different java technologies?
Are java primitives objects?
What is component in java with example?
What is the difference between load() and get()?
What is j2ee specification?
What is context root?
What is connector?
What is container-managed transaction?
What are the tools in java?
Is java a tool?
Why java is not 100% object oriented language?
Which package is imported by default in java?