JDBI v2.70 Release Notes

  • *** MAJOR CHANGES ***

    • 👍 allow JDK8 default methods in SQLObject interfaces. Backport of #190.
    • switch to standard Maven toolchains.xml for cross-compilation, #169. See https://maven.apache.org/guides/mini/guide-using-toolchains.html for instructions on how to use it.
    • Correctly handle semicolons and inline comments in SQL statements. Existing SQL statements may break due to lexer changes, ensure you have test coverage.
    • Introduce "column mappers" which dramatically improve type handling for BeanMapper-style automatic mapping. See https://github.com/jdbi/jdbi/pull/164
    • Disallow "nested" transactions explicitly. They almost certainly don't work the way you expect. Use savepoints instead.
    • ⚡️ Eagerly check return type of @SqlUpdate annotated SqlObject methods
    • 👍 Allow getting generated keys by name for Oracle
    • 👍 Allow getting generated keys from prepared Batch statements
    • 📜 Cache StatementRewriter parsing of statements
    • 👌 Support mapping of URI, char, Character types