Hello,
I've been investigating using spring's transaction annotations with hibernate. Right now we're using the hibernate threadlocal design pattern with an in house filter that handles closing hibernate sessions without using spring's transactionManager.
In some places in our code we explicitly commit to generate a primary key because subsequent processing depends on it.
So my question is if I implement OpenSessionInViewFilter, or the equivalent interceptor, and get my hibernate session via the SssionFactoryUtils can I still call session.beginTransaction.commit() in my dao's without any adverse affects? Will that call commit on spring's transactionManager or will that be a different transaction?
thanks,
Michael


Reply With Quote