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.