MyBatis SQL mapper framework for Java
Enhancements:
defaultSqlProviderType
is added. The specified class will be used as the SQL provider when the value()
or type()
is not specified in @SelectProvider
, @UpdateProvider
, @InsertProvider
and @DeleteProvider
. #1951SQL_SERVER_SNAPSHOT
is added to TransactionIsolationLevel
enum to support the MS SQL Server specific isolation level SNAPSHOT
. #1973Bug fixes:
NoSuchPropertyException
under heavy load. #1648InvalidPathException
when registering type aliases by specifying package name. #1974OutOfMemoryError
when using BlockingCache
. #2044There is no known backward incompatible change since 3.5.5.
Please see the 3.5.6 milestone page for the complete list of changes.
Enhancements:
List
or Collection
type parameter using its actual parameter name when useActualParamName
is enabled. #1237resultMap
in @One
and @Many
. #1771columnPrefix
in @One
and @Many
. #1829shrinkWhitespacesInSql
to remove extra whitespaces in SQL. #1901Bug fixes:
@CacheNamespaceRef
. #1719There is no known backward incompatible change since 3.5.4.
Please see the 3.5.5 milestone page for the complete list of changes.
Enhancements:
@Results
and @ConstructorArgs
annotation. #1698Bug fixes:
There is no known backward incompatible change since 3.5.3.
Please see the 3.5.4 milestone page for the complete list of changes.
Enhancements:
<sql />
. #1615Bug fixes:
There is no known backward incompatible change since 3.5.2.
Please see the 3.5.3 milestone page for the complete list of changes.
Enhancements:
defaultNetworkTimeout
has been added to the built-in data sources i.e. PooledDataSource
and UnpooledDataSource
#1527.value
attribute which is an alias for type
#1522.ArrayTypeHandler#setNonNullParameter()
#1548.defaultResultSetType
is added #1056.Bugs:
NullPointerException
#1590.There is no known backward incompatible change since 3.5.1.
Please see the 3.5.2 milestone page for the complete list of changes.
Bug fixes:
keyProperty
specified with parameter name could cause ExecutorException. #1485EnumTypeHandler
is not used when the enum has methods. #1489columnPrefix
. #1496columnPrefix
is specified in the parent result map. #1495LocalTimeTypeHandler
loses fractional seconds part. #1478LocalDateTypeHandler
and LocalDateTimeTypeHandler
could return unexpected value. #1478Enhancements:
@Lang
. #1391method
attribute from SQL provider annotations when the provider method has the same name as the mapper method or its name is provideSql
. #1279databaseId
in SQL providers. #1503LONGVARCHAR
is changed from ClobTypeHandler
to StringTypeHandler
. This improves compatibility with SAP ASE. #1484There is a backward incompatible change.
LocalDateTypeHandler
, LocalTimeTypeHandler
and LocalDateTimeTypeHandler
now require a JDBC driver that supports JDBC 4.2 API.
Also, these type handlers no longer work with Druid. See #1516MyBatis 3.5.0 requires Java 8 and later.
Enhancements:
wasNull()
calls from the built-in type handlers. #1244columnPrefix
in constructor arguments. #968<set />
tag now trims the leading comma. #21<case />
tag's resultType
from the enclosing resultMap
. #486columnPrefix
in constructor mapping. #968@CacheNamespace
and <cache-ref />
does not throw exception anymore. #1194Bug fixes:
Cursor
with Db2. #1345Cursor
with ReuseExecutor. #1351javaType
for <association />
. #1381Please see the 3.5.0 milestone page for the complete list of changes.
Note that there are some backward incompatible changes since the last release 3.4.6.
keyProperty
is now mandatory when using useGeneratedKeys
. If you relied on the implicit default value (="id"), generated keys will be silently ignored. #1198Cursor
now requires a driver that supports JDBC 4.1 API. #1351org.apache.ibatis.type.BaseTypeHandler
, you might need to add wasNull()
check in your type handler. #1144resultSetType
value has been changed from FORWARD_ONLY
to UNSET
. This is applied only to annotation based mappers (for XML based mappers, the default is/was UNSET
). #1334org.apache.ibatis.transaction.jdbc.JdbcTransaction
for some reason, the property autoCommmit
has been renamed to autoCommit
. #941Enhancements:
Bug fixes:
There should be no backward incompatible change since 3.4.5. Follow this link to see the full list of changes.
Enhancements:
Bug fixes:
useGeneratedKeys
is enabled globally. #902There should be no backward incompatible change since 3.4.4. Follow this link to see the full list of changes.
This is no change since 3.4.3. Please see 3.4.3 release note
There was an error in the 3.4.3 JAR on Meven Central and we had to release 3.4.4 to fix it.