Hibernate version: core 3.2.5ga annotation 3.3
Problems with Session and transaction handling?
Indeed
Read this:
http://hibernate.org/42.html; Thats where I come from :)
I'd like to have two kinds of sessions with "connection release mode"s:
One kind should have the value set to
after_transaction
this is used for really transactional stuff (updates ..)
and one with after_statement which does only selects.
The problem is that the ConnectionReleaseMode is set in the configuration of the SessionFactory. So there is only one ConnectionReleaseMode for all Sessions.
Is there a way around this?
Additional Background:
I'm still fighting problems with hibernate in fat clients. In order to limit the number of jdbc connection with a session-per-dialog aproach I'd like read only dialogs to use a jdbc session only for very limited time
regards
J.S