Skip to main content

v5.3.0 (2023-03-27)

<dependency>
<groupId>net.hasor</groupId>
<artifactId>dbvisitor</artifactId>
<version>5.3.0</version>
</dependency>

Added

  • Page interface adds methods to set total count, whether to return total count, etc.
  • Table description for auto DDL support: @TableDescription, @ColumnDescription, and DTD/XSD attributes.
  • FakerMonitor adds ignoreCounter metric.
  • resultType supports Map subclasses.
  • JsonTypeHandler for JSON handling.
  • PostgreSqlDialect supports InsertSqlDialect.

Improved

  • Page queries skip totalCount query when totalCount > 0 unless refreshTotalCount is explicitly called.
  • MySqlDialect tableName generation: catalog/schema can define DB name; catalog has higher priority.
  • JdbcTemplate error logging respects printStmtError.
  • Lambda logging wraps anonymous classes with PreparedStatementCreatorWrap and provides SqlProvider to print SQL.
  • BaseMapper method names reference MyBatisPlus to ease migration.
  • TypeHandler creation supports constructors with a Type parameter.
  • InsertSqlDialect method names shortened.

Fixed

  • NPE in TableDef.
  • Faker generating SQL SERVER DATETIMEOFFSET while dateType set to String.
  • MySqlDialect upsert syntax.
  • oracle-widely.tpc safeMaxLength swapped max/default.
  • InsertExecute.executeSumResult counts -2 as a valid batch result.