Why session is not thread safe in hibernate?
Answer / Kiran Kumari
Hibernate Session objects are not thread-safe because they maintain an open connection to the database. Multiple threads accessing a single session can lead to inconsistent data, as changes made by one thread may not be immediately visible to others. To avoid this, each thread should have its own Session object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is orm faster than sql?
What is meant by light object mapping?
Hibernate SessionFactory is thread safe?
What is the default cache in hibernate?
What is lazy initialization in hibernate?
What is id generator in hibernate?
What is a hibernatetemplate?
What is hibernate qbc api?
What is <unk>onetomany mappedby?
Mention two components of hibernate configuration object.
How do you implement one to one relationship in hibernate with java annotation?
Why jpa is better than hibernate?