What is the difference between sessionfactory and session in hibernate?
Answer / Jyoti Arya
In Hibernate, SessionFactory is a factory object that creates Sessions. It's a thread-safe and long-lived entity that should be initialized once during the application lifecycle. On the other hand, Session is an interface representing the current session with the database.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why default constructor is required in hibernate?
What is the difference between sessionfactory and session in hibernate?
Why we use hibernate?
Which is better nhibernate or entity framework?
Can I reuse the session in hibernate?
Is ef an orm?
Explain the advantages of hibernate?
What is cascadetype in hibernate?
Difference between sorted and ordered collection in hibernate?
Difference between save() and saveorupdate() in hibernate?
Why do you need orm tools like hibernate?
Why hibernate?