Skip to content

Commit 3d20964

Browse files
authored
Merge pull request #819 from kazuki43zoo/implements-TransactionSynchronization
Use the TransactionSynchronization instead of TransactionSynchronizationAdapter
2 parents fa0e8ad + 894b7a3 commit 3d20964

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/mybatis/spring/SqlSessionUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 the original author or authors.
2+
* Copyright 2010-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@
2929
import org.springframework.dao.TransientDataAccessResourceException;
3030
import org.springframework.dao.support.PersistenceExceptionTranslator;
3131
import org.springframework.jdbc.datasource.DataSourceUtils;
32-
import org.springframework.transaction.support.TransactionSynchronizationAdapter;
32+
import org.springframework.transaction.support.TransactionSynchronization;
3333
import org.springframework.transaction.support.TransactionSynchronizationManager;
3434

3535
/**
@@ -225,7 +225,7 @@ public static boolean isSqlSessionTransactional(SqlSession session, SqlSessionFa
225225
* {@code SqlSession}. It assumes that {@code Connection} life cycle will be managed by
226226
* {@code DataSourceTransactionManager} or {@code JtaTransactionManager}
227227
*/
228-
private static final class SqlSessionSynchronization extends TransactionSynchronizationAdapter {
228+
private static final class SqlSessionSynchronization implements TransactionSynchronization {
229229

230230
private final SqlSessionHolder holder;
231231

0 commit comments

Comments
 (0)