Skip to main content

v5.4.4 (2024-09-14)

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

Breaking changes

  • Removed six internal low-level APIs from JdbcOperations; alternatives exist or usage is limited:
    • executeCreator(PreparedStatementCreator, PreparedStatementCallback<T>)
    • executeCall(CallableStatementCreator, ResultSetExtractor<T>)
    • executeCall(CallableStatementCreator, RowCallbackHandler)
    • executeCall(CallableStatementCreator, RowMapper<T>)
    • executeCallback(String, PreparedStatementCallback)
    • executeCallback(String, CallableStatementCallback)
  • JdbcTemplate.boolean execute(String) now returns void; since Statement.execute(String) results aren’t handled in this path, the return value was not useful.

Added

  • Mapper can return lists of primitive types.
  • lambdaQuery can use queryForList with a target type to return different result wrappers.
  • lambdaQuery supports queryForList returning primitive lists.

Improved

  • Cache LambdaTemplate creation early in BaseMapperHandler to reduce instantiation.
  • MappingRegistry.loadMapper auto-detects and filters duplicate resources to avoid noisy errors.
  • Reduce small object creation when using InsertLambda.

Fixed

  • DalSession.createMapper now loads resources annotated with @RefMapper correctly.