Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
what to have in context??
posted 12 years ago
im using hibernate in a web app under
i create a hibernate configuration in a startup
but i dont know what to put in the app context for future use
is correct to store Config in the context and retrieve/close a SessionFactory every time i need it or should i put SessionFactory in the context and get it in my classes?
what's the correct method?
thank u guys
[ July 01, 2005: Message edited by: Lukas Alamar ]
Boost this thread!
Hibernate template puts a lock on database after 5-6 calss to it.
What does a SessionFactory object cache?
Java app on Tomcat return "Network Error (tcp_error)" error
Design question for creating a DAO using Hibernate