We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a4090b commit 504c79eCopy full SHA for 504c79e
demo-iciql/src/main/java/com/example/PizzaRepository.java
@@ -10,6 +10,7 @@
10
11
import javax.sql.DataSource;
12
13
+import org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy;
14
import org.springframework.stereotype.Repository;
15
import org.springframework.transaction.annotation.Transactional;
16
@@ -24,7 +25,7 @@ public class PizzaRepository {
24
25
private final DataSource dataSource;
26
27
public PizzaRepository(DataSource dataSource) {
- this.dataSource = dataSource;
28
+ this.dataSource = new TransactionAwareDataSourceProxy(dataSource);
29
}
30
31
public List<Pizza> findOrderByIdAsc() {
0 commit comments