From e4ebb0e156b29ebbab1f10c417c6877692daea37 Mon Sep 17 00:00:00 2001 From: Stein Desmet Date: Fri, 14 Jul 2023 10:00:23 +0200 Subject: [PATCH 1/3] Guice 7 & jakarta migration --- pom.xml | 8 ++-- .../org/mybatis/guice/MyBatisJtaModule.java | 11 +++-- .../java/org/mybatis/guice/MyBatisModule.java | 5 ++- .../configuration/ConfigurationProvider.java | 9 ++-- ...terceptorConfigurationSettingProvider.java | 6 +-- ...ndHandlerConfigurationSettingProvider.java | 6 +-- .../ObjectFactoryConfigurationSetting.java | 6 +-- ...ectWrapperFactoryConfigurationSetting.java | 6 +-- ...peHandlerConfigurationSettingProvider.java | 6 +-- .../builtin/JndiDataSourceProvider.java | 9 ++-- .../builtin/PooledDataSourceProvider.java | 9 ++-- .../builtin/UnpooledDataSourceProvider.java | 9 ++-- .../c3p0/C3p0DataSourceProvider.java | 9 ++-- .../dbcp/BasicDataSourceProvider.java | 9 ++-- .../dbcp/DriverAdapterCPDSProvider.java | 9 ++-- .../dbcp/PerUserPoolDataSourceModule.java | 6 +-- .../dbcp/PerUserPoolDataSourceProvider.java | 7 ++-- .../dbcp/SharedPoolDataSourceProvider.java | 7 ++-- .../druid/DruidDataSourceProvider.java | 7 ++-- .../helper/JdbcUrlAntFormatter.java | 8 ++-- .../guice/datasource/helper/KeyResolver.java | 6 +-- .../datasource/hikaricp/HikariCPProvider.java | 9 ++-- .../environment/EnvironmentProvider.java | 11 ++--- .../mybatis/guice/mappers/MapperProvider.java | 8 ++-- ...onfigurationProviderProvisionListener.java | 4 +- .../session/SqlSessionFactoryProvider.java | 8 ++-- .../session/SqlSessionManagerProvider.java | 8 ++-- .../transactional/MyBatisXAException.java | 2 +- .../transactional/TransactionAttribute.java | 20 ++++----- .../guice/transactional/TransactionToken.java | 4 +- .../TransactionalMethodInterceptor.java | 6 +-- .../TxTransactionalMethodInterceptor.java | 9 ++-- .../transactional/XASqlSessionManager.java | 2 +- .../XASqlSessionManagerProvider.java | 7 ++-- .../guice/type/TypeHandlerProvider.java | 8 ++-- .../guice/AbstractMyBatisModuleTestCase.java | 6 +-- .../org/mybatis/guice/AddressTypeHandler.java | 6 +-- .../org/mybatis/guice/CleanDatabaseRule.java | 8 ++-- .../mybatis/guice/ContactIdTypeHandler.java | 6 +-- .../mybatis/guice/ContactMapperClient.java | 8 ++-- .../mybatis/guice/ContactNameTypeHandler.java | 6 +-- .../mybatis/guice/CountUpdateInterceptor.java | 6 +-- .../MyBatisModulePackageTestCaseTest.java | 6 +-- .../org/mybatis/guice/MyBatisModuleTest.java | 42 +++++-------------- .../guice/MyBatisModuleTestCaseTest.java | 8 ++-- ...eEnvironmentMyBatisModuleTestCaseTest.java | 4 +- .../XMLMyBatisModulePackageTestCaseTest.java | 6 +-- .../guice/XMLMyBatisModuleTestCaseTest.java | 6 +-- .../MyConfigurationProvider.java | 4 +- .../CustomSqlSessionFactoryTest.java | 4 +- .../MySqlSessionFactory.java | 4 +- .../MySqlSessionFactoryProvider.java | 6 +-- .../dbcp/PerUserPoolDataSourceModuleTest.java | 5 ++- .../GenericCustomObjectTypeHandler.java | 6 +-- .../guice/jta/CustomXaResourceProvider.java | 2 +- .../org/mybatis/guice/jta/JtaProcess.java | 6 +-- .../mybatis/guice/jta/JtaService1Impl.java | 6 +-- .../mybatis/guice/jta/JtaService2Impl.java | 6 +-- .../guice/jta/simple/CombinedService.java | 6 +-- .../guice/jta/simple/Schema1Service.java | 6 +-- .../guice/jta/simple/Schema2Service.java | 6 +-- .../guice/jta/simple/SimpleJTATest.java | 5 ++- .../guice/multidstest/Schema1Service.java | 4 +- .../guice/multidstest/Schema2Service.java | 4 +- .../guice/nestedtx/NestedTxService.java | 6 +-- .../objectfactory/CustomObjectFactory.java | 4 +- .../CustomObjectWrapperFactory.java | 4 +- .../resolver/typehandler/UserTypeHandler.java | 6 +-- .../mybatis/guice/sample/dao/UserDaoImpl.java | 4 +- .../sample/service/FooServiceDaoImpl.java | 4 +- .../sample/service/FooServiceMapperImpl.java | 4 +- 71 files changed, 245 insertions(+), 249 deletions(-) diff --git a/pom.xml b/pom.xml index 34816ae2..0a486b87 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@