AnsweredAssumed Answered

spring transaction support

Question asked by hakanskucuk on Feb 15, 2011
Latest reply on Feb 18, 2011 by frederikheremans1
We are currently using Jpa (Hibernate 3.6) and spring 3.0 in our project.
For automatic id generation we are using To generate an id, hibernate fetches a new connection and do his work in this new connection and commits.

In spring integration examples, your are using  TransactionAwareDataSourceProxy. When we change DriverManagerDataSource to TransactionAwareDataSourceProxy, all the work is done in the same connection. Hibernate id generator does not get a new connection but commits. We can't rollback transactions because of id generator.

How can i solve this problem?

I think the problem mentioned in SPR-6839 is related with my problem.