v5.4.0 (2023-08-24)
<dependency>
<groupId>net.hasor</groupId>
<artifactId>dbvisitor</artifactId>
<version>5.4.0</version>
</dependency>
Breaking changes
SelectKeyHandleradds a parameter to mark before/after invocation.KeySeqHolderaddsonBefore/onAfterto mark stages.- LambdaTemplate Map mode no longer depends on DB metadata; dbVisitor will not query metadata.
- Reworked
InsertLambdalogic to handle differences between Entity and Map modes. - Removed
PhoenixDialect.
Added
@BindTypeHandlerannotation for custom TypeHandlers.URITypeHandler,URLTypeHandler, plus JDBC TypesDATALINKandROWIDsupport.- Keyword dictionaries for h2/db2/derby/hive/hsql/impala/informix/sqlite/sqlserver/Dameng/Xugu.
- Mapper files can set
useDelimited. lambdaUpdateUpdateExecuteinterface gains Condition methods.DalRegistryadds twohasScopemethods to check scope existence.- Lambda Delete/Insert/Select/Update for Map support
MappingOptions.
Improved
- Removed unfinished dbVisitor generate code.
- Upgrade cobble to 4.5.4.
IncludeRulenow avoids extra spaces in generated SQL.- lambda Update/Delete/Query tolerate tableMapping with no matched columns.
- Mapping logic reduces
TableDefaultInfoconstruction. - DTD/XSD validation:
entity.tableoptional; if omitted the entity class must have@Table. - Compatibility tweaks for H2 2.2.220.
- Unit tests improved: 834 tests passing, line coverage 77%, class coverage 92%.
DalSession.createMapperno longer requires mapper interfaces to be annotated; auto-detectsDalRegistry.ExecuteInvocationHandleraligns default-method handling with MyBatis for Java 8/9.
Fixed
- Incorrect error messages always showing NPE (thanks to community user aqnghu).
lambdaInsertmissing auto-increment backfill when auto column excluded from insert.- Mapper file-level
MappingOptionsnot taking effect (priority: table -> mapper file -> global). - Oracle
InsertLambdabatch insert failures. SqlXmlForReaderTypeHandlernot working.BaseMapper.updateByIdforcing id into updates.