Releases: jdbi/jdbi
Releases · jdbi/jdbi
JDBI 3.36.0
- fix concurrency issue when copying the config registry (#2236), thanks @npetryk
- Support class-level (static) instance fields for JdbiExtension and its subclasses.
- Add jdbi3-testing support for testcontainer based databases, see Using Testcontainers for details
JDBI 3.35.0
- Fix
JdbiFlywayMigration
to work with Flyway 9 (#2179, thanks @broccolai) - ResultIterable.useIterator and ResultIterable.withIterator new helper methods to close iterator resources
- add handle and resource leak checking to all unit tests, fix unit tests to not leak any resources
- add resource leak checking support to the
JdbiExtension
JUnit5 testing framework - support lifecycle listeners for
Handle
andStatementContext
- fixes and updates to the build system, additional docs for contributing, IDE code style support for IntelliJ and Eclipse
- doc updates for Kotlin code
- add Kotlin
mapTo(KClass<*>)
extension function toResultBearing
- SqlObject Consumer now accepts Consumer<Stream> and Consumer<Iterator> forms
- deprecate misnamed
setTransactionIsolation
method, addsetTransactionIsolationLevel
to the handle - deprecate misnamed
release
method, addreleaseSavepoint
to the handle - add missing
isInTransaction
method toTransactional
, bringing it to par to the handle set of methods - add H2 option string, user and password methods to
JdbiH2Extension
- ReflectionMappers: add accessibleObjectStrategy to allow skipping setAccessible calls for FieldMapper in particular
- minimal support for testing with other databases in
JdbiGenericExtension
- Dependabot warnings for Postgres and H2, upgrade to 42.5.1 and 2.1.214 respectively.
3.34.0
jdbi3-generator
will now support any Java 8+ version without generating compile-time warnings (#2128)- AbstractArgumentFactory also need to check for supertypes when the generic argument is not a class (fixes #2026)
- Replace
@Unmappable
with@JdbiProperty
so you can configure both mapping and binding flexibly
JDBI 3.33.0
- make
@Unmappable
work with FieldMapper fields and KotlinMapper properties - rework the mapping logic for all bean related mappers (Bean, Field, Constructor, KotlinMapper)
- clarify the @PropagateNull logic, ensure that it works with nested beans
- ensure that bean mapper annotations work with lombok value and bean classes
- add explicit support for
byte[]
->BYTEA
for Postgres. (#2109) - Revert lexer changes #1906 due to regressions
- add missing jdbi3-postgis and jdbi3-json (tests) to the BOM
- update build tooling for Java and Kotlin
- internal kotlin packages are considered undocumented and no longer show up in the docs
- Bean mapping now prefers setter annotations over getter annotations. (#2103)
- Various methods that accept SQL statements now take CharSequence in preference to String (#2047)
- Add a typesafe
Sql
class for SQL statements. - Upgrade Postgres driver to 42.5.0
- call warm() correctly for SqlStatementCustomizer (#2040)
JDBI 3.32.0
- Use Kotlin 1.7 ecosystem (compiler, plugin) but compile to Kotlin 1.5 compatibility
- Add support for Eclipse LocationTech JTS data types with PostGIS. (#2072, #2074, thank you @bchapuis)
- Fix exception in Handle#close() when underlying connection is closed (#2065)
- Give access to per-batch row modification count (#2069, #2060, thank you @doppelrittberger)
- Start new examples module for JDBI3 example code.
3.31.0
- Support binding parameters of type CharSequence (#2057, thanks @sman-81)
- Fix Sql scripts to support BEGIN / END nested scripts (#2021, thanks @sman-81)
- ResultIterables have additional convenience methods forEachWithCount and filter (#2056, thanks @sman-81)
- upgrades to the build system to support external modules. This allows keeping the
jdbi3-oracle12
module up to date.
3.30.0
3.30.0
- Fix DefinedAttributeTemplateEngine lexer bug swallowing single-quoted text with escapes (#1906)
- ANTLr 4.10.1
- GSON 2.9.0 fixes CVE-2022-25647
- Spring 5.3.20 fixes CVE-2022-22965
- Promote TemplateEngine.NOP to a NoTemplateEngine class, for use with @UseTemplateEngine
JDBI 3.29.0
This is a maintenance release. It bumps the minor because of a backwards incompatible change
in the JdbiOtjPostgresExtension
due to a change in the upstream otj-pg-embedded
component.
If you do not use this component, there are no significant changes over 3.28.0.
- build now fully supports building with JDK 17
- minor changes and cleanups (#2020, #2023)
- always load kotlin plugin if using kotlin-sqlobject (#2023)
- change BOM to resolve versions in the released bom version
- update to otj-pg-embedded 1.0.1 (0.13.x started to crash on MacOS Monterey). This is a backwards
incompatible change as the component changed the call signature ofgetJdbcUrl
. This only
affects the JdbiOtjPostgresExtension
JDBI 3.28.0
Changed
- Remove the antlr4-runtime dependency by inlining it into the core jar.
Security
- update baseline dependencies for known CVE (reported by dependabot)
Housekeeping
- [CI] add lgtm checks
- [CI] build integration tests for inlined jar