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 java naming and directory service?
What is a j2ee container?
What is the use of method saveorupdate()?
What is containers in java?
Explain the j2ee tiers.
Is java is a technology?
Why is java robust?
how to run servlet program between two computer through internet ?
What is source file in java?
Why java is called portable language?
Difference between save and saveorupdate?
What is a j2ee component?
What is ear file?
What is a java application server?
What does enterprise javabeans module contain?