From 14bbfd35f7636a1f5029dc171cdb9bba3d3c3774 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Fri, 3 Nov 2023 20:33:55 -0400 Subject: [PATCH 1/2] [cleanup] Delete legacy changes.xml maven has not released in years and it doesn't work with any modern jdk. Using github releases. Moved all data over to match. Note, we have not picked this up on sites in some time. --- src/changes/changes.xml | 345 ---------------------------------------- 1 file changed, 345 deletions(-) delete mode 100644 src/changes/changes.xml diff --git a/src/changes/changes.xml b/src/changes/changes.xml deleted file mode 100644 index c37e9f5b..00000000 --- a/src/changes/changes.xml +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - The MyBatis Team - Changes - - - - - - Updates Guice to version 7 and use Jakarta namespace. - - - - - Replaces "jdbc:mysql" URL with "jdbc:mariadb" for MariaDB in JdbcHelper - - - - - - Add use failover mode and load balancing mode of MariaDB connector/j. - - - - - - Adds support for HikariCP. - - - - Replaces Apache Commons DBCP version 1 by Apache Commons DBCP version 2. - Some properties are replaced. - BasicDataSourceProvider: - maxActive -> maxTotal; - maxWait -> maxWaitMillis; - DriverAdapterCPDSProvider: - maxIdle removed; - PerUserPoolDataSource: - minEvictableIdleTimeMillis -> defaultMinEvictableIdleTimeMillis; - numTestsPerEvictionRun -> defaultNumTestsPerEvictionRun; - testOnBorrow -> defaultTestOnBorrow; - testOnReturn -> defaultTestOnReturn; - testWhileIdle -> defaultTestWhileIdle; - timeBetweenEvictionRunsMillis -> defaultTimeBetweenEvictionRunsMillis; - maxActive -> defaultMaxTotal; - maxIdle -> defaultMaxIdle; - maxWait -> defaultMaxWaitMillis; - @PerUserMaxActive -> @PerUserMaxTotal; - @PerUserMaxWait -> @PerUserMaxWaitMillis; - SharedPoolDataSourceProvider: - minEvictableIdleTimeMillis -> defaultMinEvictableIdleTimeMillis; - numTestsPerEvictionRun -> defaultNumTestsPerEvictionRun; - testOnBorrow -> defaultTestOnBorrow; - testOnReturn -> defaultTestOnReturn; - testWhileIdle -> defaultTestWhileIdle; - timeBetweenEvictionRunsMillis -> defaultTimeBetweenEvictionRunsMillis; - maxActive -> defaultMaxTotal; - maxIdle -> defaultMaxIdle; - maxWait -> defaultMaxWaitMillis; - - - - - Removed support for BoneCP. - - - - - - Allow TxTransactionalMethodInterceptor to commit the transaction on some exceptions. - - - - Fixes use of Configuration provider. - - - - Fixes OSGI imports. - - - - - - Allow Druid connection properties to be set using an instance of Properties. - - - - Make JdbcUrlAntFormatter class public to allow users to format their custom URLs like in JdbcHelper. - - - Fixes following configuration properties for BoneCP data source. - idleConnectionTestPeriod, - idleConnectionTestPeriodInMinutes, - idleConnectionTestPeriodInSeconds - - - - Fixes ProvisionException when setting login timeout for BasicDataSource - - - - Fixes use of data source name configuration property for SharedPoolDataSourceProvider. - - - - Fixes generic types in PerUserPoolDataSourceModule. - - - - Fixes readOnly property for Druid data source. - - - - Removed dependency on guice multibindings. - - - - - - Restored setting configuration using properties. Only properties that existed in version 3.7 will be supported in the future. - - - Fixes constructor injection for TypeHandlers. - - - Added support for Druid data source. - - - - - - Default Environment ID for XML configuration changed from "development" to the value of "default" attribute of <environments> element. - - - Added support for Druid data source. - - - Configuration can be customized using ConfigurationSetting interface. - - - - - - Fixes concurrency error with JTA. - - - - - - Default scripting language can be used. - - - Generic type handlers can be used. - - - Constructor injection will not work on type handlers due to support for generic type handlers. - Use field or setter injection instead. - - - Injection will work for ObjectFactory and ObjectWrapperFactory when using XML configuration. - - - - - - Alias scanner will now respect the @Alias annotation of MyBatis. - - - Code cleanup, optimized the imports and some java-doc fixes. - - - Updated some internal dependencies. - log4j 1.2.16 -> 1.2.17 - hsqldb 2.2.4 -> 2.2.9 - - - - - - Added resources/JDBC custom ClassLoader support. - - - Missing mapUnderscoreToCamelCase property in mybatis-guice. - - - Inject dependencies in TypeHandlers defined in the XML - - - Made org.mybatis.guice.datasource.c3p0.C3p0DataSourceProvider username/password optional - (users can specify them in the JDBC URL). - - - Made org.mybatis.guice.datasource.dbcp.BasicDataSourceProvider username/password optional - (users can specify them in the JDBC URL). - - - Made org.mybatis.guice.datasource.dbcp.DriverAdapterCPDSProvider username/password optional - (users can specify them in the JDBC URL). - - - Made org.mybatis.guice.datasource.builtin.PooledDataSourceProvider username/password optional - (users can specify them in the JDBC URL). - - - Made org.mybatis.guice.datasource.builtin.UnpooledDataSourceProvider username/password optional - (users can specify them in the JDBC URL). - - - Internal code polishing. - - - - - - Remove useless dependencies in the final artifact. - - - - - - Simplified @Transactional behavior, deprecated @Transactional#autoCommit() - - - - - - (XML)MyBatisModule now works as proper Guice module - - - Fixed Provider<DatSource> type, must be JSR330'ed, thanks to Marzia Forli - - - - - - Remove mapper order restriction when referencing SQL fragment in another file. - - - Fixed org.mybatis.guice.configuration.ConfigurationProvider injections point, added missing setters. - - - Guice dependency upgrated to 3.0. - - - Modules are JSR330'ed. - - - Added BoneCP in the supported datasource providers. - - - Added H2DB in the supported JDBC Helpers. - - - @org.mybatis.guice.transactional.Transactional#exceptionMessage() expressed using java.util.Formatter - pattern and no more with java.text.MessageFormat#format(). - - - - - - Added missing SqlSession -> SqlSessionManager binding, - so users can request managed SqlSession injections. - - - Hidden internal APIs - - - - - - Finalized XML MyBatis configuration support. - - - Documented XML MyBatis configuration support. - - - Removed the over engineered 'transactionfactory' package. - - - Google Guice extension dependencies moved to 'compile' scope. - - - MyBatis dependency upgrated to 3.0.3 - - - - - - Started developing the XML prototypal support (undocumented yet). - - - Avoid ConfigurationProviderInjectionListener.afterInjection() randomically called twice. - - - Added the @org.mybatis.guice.transactional.Transactional.rollbackOnly parameter. - - - Added the org.mybatis.guice.MyBatisModule#addSimpleAliases(Collection<Class<?>>). - - - Added the org.mybatis.guice.MyBatisModule#addInterceptorsClasses(Collection<Class<? extends Interceptor>>). - - - Added the org.mybatis.guice.MyBatisModule#addMapperClasses(Collection<Class<?>>). - - - - - - ErrorContext leaks in ThreadLocal. - - - Added the JdbcHelper to simplify the JDBC Drivers configuration. - - - - - - Imported and moved the original iBaGuice codebase. - - - - - From 999a27f61f2a556a953ccab33a950ad63a44ab99 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Fri, 3 Nov 2023 20:45:50 -0400 Subject: [PATCH 2/2] [pom] Set version to 4.0.0 for jakarta --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 89f783b5..b4b3b108 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ org.mybatis mybatis-guice - 3.19-SNAPSHOT + 4.0.0-SNAPSHOT mybatis-guice The MyBatis Guice module is easy-to-use Google Guice bridge for MyBatis sql mapping framework.