v4.3.0 (2021-12-18)
<dependency>
<groupId>net.hasor</groupId>
<artifactId>dbvisitor</artifactId>
<version>4.3.0</version>
</dependency>
Added
- Aliyun ADB for MySQL dedicated metadata query service and data model.
- MySQL dedicated metadata query service and data model.
- In
SqlDialect,db-keywordsnow forces quoting when a column name matches a keyword. - Added keywords for DM, MySQL, Oracle, and PostgreSQL.
- Mapper XML DTD and Schema validation files.
andandorrules.<selectKey>tag and its extension mechanism.- Recognize the
kylindatabase. insert xxx from selectnow supports insert strategies.printStmtErrorproperty to control whether SQL errors must be printed.Uuid36Rulerule.@Callableand@Queryannotations add aresultTypeattribute.
Improved
resultMapandentityMapshare the same code path;entityMaprequires thetableattribute and is globally effective.- Stored procedures now follow MyBatis3 behavior:
outparameters are returned via input parameters, so@Callableand<callable>are no longer needed. - All mappers implement the
Mappermarker interface. - Refactored
LambdaTemplateto provide entity-based single-table CRUD capabilities. - Removed dependencies on metadata-based queries and related packages.
- Replaced
hasor-commonswithcobbleand dropped theslf4jdependency. - Removed the
hasor-coredependency and its plugin configuration. - Simplified
SqlDialect, reduced coupling, removedHerdDBDialect. - Split
SqlDialectintoConditionSqlDialectandPageSqlDialect. - Mapping now uses
@Propertyand@Tableannotations with optional XML configuration. - Removed
getTableMappingfromTableReader. - Improved Mapper XML compatibility with MyBatis3.
- Improved MyBatis3 DTD compatibility.
<trim>is no longer case sensitive.<bind>no longer provides theoverwriteattribute.- Added MySQL
yeartype compatibility tests. - Refactored dal package features for clarity.
- Extracted stored procedure handling in
JdbcTemplatetoSimpleCallableStatementCallback. - Upgraded Antlr4 to 4.9.2.
- Optimized
RuleRegistry,TypeHandlerRegistry, andMapperRegistry. - Moved built-in jar directory to
net.hasor.db.jars. - Moved the
pagepackage out oflambdato the top level. @MappedJdbcTypesnow usesIntegerfor JDBC type parameters.- Renamed
commitLasttocommitfor clarity. - Renamed
TransactionManager.getTransactiontobegin.
Fixed
resultMapregistration no longer overwritesspace.AbstractRowMappernow special-cases Oracle when locating aTypeHandler.- Handles
@Tablewhen bothnameandvalueare empty. - Merged
DataSourceManagerandTranManager, and fixed isolation-level configuration bugs.