DbSessionProvider
implementations should NOT create new db sessions! DbSession
should be already created and somehow assigned to DbSessionProvider
implementation. User must control session opening and closing, and not DbSessionProvider
, as we can not figure weather connection should be closed after closing a query; or still hold on open for the next query.
|
|