Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql2o and spring transaction integration question #313

Open
colesico opened this issue Jan 16, 2019 · 1 comment
Open

sql2o and spring transaction integration question #313

colesico opened this issue Jan 16, 2019 · 1 comment

Comments

@colesico
Copy link

colesico commented Jan 16, 2019

https://github.com/aaberg/sql2o/wiki/Integration-with-Spring-Framework

Not quite clear how does the sql2o actualy gets the jdbc connection that is binded to the active transaction?

As far as I know, in order to get a jdbc connection binded to the active spring transaction, DataSourceUtils.getConnection()
shoud be used ( instead of directly from data sourcre) or data source wraped to TransactionAwareDataSourceProxy

Thx!

@dirkluijk
Copy link

dirkluijk commented Dec 14, 2020

It looks like @Transactional is not working either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants