JDBI v3.1.0 Release Notes

    • The strict transaction handling check in Handle.close() may be disabled via getConfig(Handles.class).setForceEndTransactions(false).
    • ๐Ÿ‘ StringTemplate SQL locator supports StringTemplate groups importing from other groups.
    • ๐Ÿ†• New RowReducer interface and related APIs make it simple to reduce master-detail joins into a series of master objects with the detail objects attached. See:
      • RowReducer interface
      • LinkedHashMapRowReducer abstract implementation for 90% of cases
      • ResultBearing.reduceRows(RowReducer)
      • @UseRowReducer SQL Object annotation
    • ๐Ÿ›  Fixed bug in PreparedBatch preventing batches from being reusable.
    • โž• Additional Kotlin convenience methods to avoid adding ".java" on every Kotlin type:
      • Jdbi.withExtension(KClass, ExtensionCallback)
      • Jdbi.useExtension(KClass, ExtensionConsumer)
      • Jdbi.withExtensionUnchecked(KClass, callback)
      • Jdbi.useExtensionUnchecked(KClass, callback)
    • EnumMapper tries a case insensitive match if there's no exact match
    • ๐Ÿ‘ OracleReturning.returningDml() supports named parameters
    • ๐Ÿ›  Fixed regression in Postgres typed enum mapper, which caused a fallback on the Jdbi default enum mapper.