What is the difference between SessionFactory and session in hibernate?
S.no | SessionFactory objects | Session |
---|---|---|
1. | There is one SessionFactory object per application | There is one Session object per client |
2. | Used for creation and management and it is threaded safe | Sessions Session is not threaded safe and give CRUD interface to the mapped classes |
BY Best Interview Question ON 05 Apr 2019