Do we have any other differences other than the below? Also please validate whether the below are correct
SessionFactory
objects are one per applicati
SessionFactory
is a factory class for Session
objects. It is available for the whole application while a Session
is only available for particular transaction.
Session
is short-lived while SessionFactory
objects are long-lived. SessionFactory
provides a second level cache and Session
provides a first level cache.