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 fatal error?
How do I become a java developer?
Is j2ee a programming language?
What are the components and containers in java?
What is javabeans component?
What do you understand by business logic?
What is empty tag?
What is create method?
What are the components of the java platform?
What are the main components of the j2ee application?
What is authorization?
What is a j2ee component?
Why is java called technology?
In DAO we are writting sql queries , how it is possible with creating and closing database connections.
Why is j2ee needed?