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 api for xml-based rpc (jax-rpc)?
I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????
Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .
What are web technologies in java?
What is java naming and directory service?
What is sandbox in java?
What is iso 3166?
Differentiate between .ear, .jar and .war files.
How do you run a java program?
What are the j2ee client types?
What is core java and j2ee?
What is java ee architecture?
Is j2ee a framework?
How can I be good in java?
i want test pattern of zylog company and some examples also