Micronaut Data 4.2.0
What's Changed
New Features π
- Support associations in DTOs by @dstepanov in #2495
Bug Fixes π
- Support underscore in repo methods to avoid mapped properties ambiguity by @radovanradic in #2498
- Fix loading entity with many to one consisting only of id field by @radovanradic in #2513
- bug: JPA if native use createNativeMutationQuery by @sdelamo in #2520
- Use schema for many to many join table creation, select and insert by @radovanradic in #2529
- Support custom save method with non generated id by @radovanradic in #2532
- R2DBC Correct canceling a transaction by @dstepanov in #2527
- Fix embedded id naming issue when using QueryModel directly by @radovanradic in #2535
- Fix MongoDB aggregation response mapping by @radovanradic in #2598
Improvements β
- use transaction-manager in lower kebap case by @sdelamo in #2515
- MongoDB: Support
arrayFilters
by @dstepanov in #2523 - Support procedure invocation by @dstepanov in #2502
- Support coroutine connection and transaction operations by @dstepanov in #2536
- Support update with returning clause by @dstepanov in #2544
- Implement reactive MongoQueryExecutor by @radovanradic in #2587
Docs π
- Document how to use Spring JdbcTemplate, with multi-language examples. by @wetted in #2494
- Fix documentation example as batch update cannot return list of results by @radovanradic in #2581
Dependency updates π
- fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom to v6.1.0 by @renovate in #2490
- fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.0.2 by @renovate in #2489
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.3 by @renovate in #2487
- fix(deps): update dependency io.micronaut.spring:micronaut-spring-bom to v5.0.2 by @renovate in #2486
- chore(deps): update graalvm/setup-graalvm action to v1.1.3 by @renovate in #2493
- chore(deps): update dependency gradle to v8.3 by @renovate in #2481
- fix(deps): update dependency io.micronaut.multitenancy:micronaut-multitenancy-bom to v5.0.3 by @renovate in #2504
- fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.0.3 by @renovate in #2505
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.4 by @renovate in #2508
- fix(deps): update dependency io.micronaut.logging:micronaut-logging-bom to v1.1.2 by @renovate in #2507
- fix(deps): update dependency io.micronaut.kotlin:micronaut-kotlin-bom to v4.0.2 by @renovate in #2506
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.5 by @renovate in #2512
- fix(deps): update dependency org.apache.groovy:groovy-dateutil to v4.0.15 by @renovate in #2514
- fix(deps): update spring data by @renovate in #2517
- fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plugin to v4.1.1 by @renovate in #2522
- chore(deps): update graalvm/setup-graalvm action to v1.1.4 by @renovate in #2500
- fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom to v6.2.0 by @renovate in #2526
- fix(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.1.4 by @renovate in #2528
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.6 by @renovate in #2530
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.7 by @renovate in #2538
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.2.5 by @renovate in #2537
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.8 by @renovate in #2540
- fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5.0.2 by @renovate in #2539
- fix(deps): update dependency com.oracle.database.jdbc:ojdbc8 to v23.3.0.23.09 by @renovate in #2542
- fix(deps): update dependency org.testcontainers:testcontainers-bom to v1.19.1 by @renovate in #2543
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.9 by @renovate in #2546
- chore(deps): update dependency gradle to v8.4 by @renovate in #2545
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.2.6 by @renovate in #2552
- chore(deps): update plugin io.micronaut.build.shared.settings to v6.5.7 by @renovate in #2551
- fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.0.3 by @renovate in #2558
- fix(deps): update spring data by @renovate in #2562
- fix(deps): update dependency io.micronaut.spring:micronaut-spring-bom to v5.1.0 by @renovate in #2566
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.10 by @renovate in #2568
- chore(deps): update plugin io.micronaut.build.shared.settings to v6.6.0 by @renovate in #2569
- fix(deps): update dependency org.springframework.boot:spring-boot-gradle-plugin to v3.1.5 by @renovate in #2572
- fix(deps): update micronaut.testresources to v2.1.0 by @renovate in #2573
- fix(deps): update dependency io.micronaut.gradle:micronaut-gradle-plugin to v4.1.2 by @renovate in #2574
- fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.1.0 by @renovate in #2576
- fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom to v6.2.1 by @renovate in #2579
- fix(deps): update dependency me.champeau.jmh:jmh-gradle-plugin to v0.7.2 by @renovate in #2583
- fix(deps): update kotlin monorepo to v1.9.20 by @renovate in #2586
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.1.11 by @renovate in #2589
- fix(deps): update dependency com.google.devtools.ksp:symbol-processing-gradle-plugin to v1.9.20-1.0.13 by @renovate in #2588
- fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5.1.0 by @renovate in #2592
- fix(deps): update dependency io.micronaut.kotlin:micronaut-kotlin-bom to v4.1.0 by @renovate in #2593
- fix(deps): update dependency com.google.devtools.ksp:symbol-processing-gradle-plugin to v1.9.20-1.0.14 by @renovate in #2594
- chore(deps): update graalvm/setup-graalvm action to v1.1.5 by @renovate in #2596
- fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5.2.0 by @renovate in #2602
- fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.1.0 by @renovate in #2603
- fix(deps): update dependency io.micronaut.spring:micronaut-spring-bom to v5.1.1 by @renovate in #2604
- fix(deps): update dependency io.micronaut.rxjava2:micronaut-rxjava2-bom to v2.1.0 by @renovate in #2607
- fix(deps): update dependency io.micronaut.multitenancy:micronaut-multitenancy-bom to v5.1.0 - autoclosed by @renovate in #2605
- fix(deps): update dependency io.micronaut.r2dbc:micronaut-r2dbc-bom to v5.1.0 by @renovate in #2609
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.3.1 by @renovate in #2613
Other Changes π‘
- R2DBC: Don't cache results for queries without joins by @dstepanov in #2497
- Correct repositories with custom id entities by @dstepanov in #2503
- imp: Factory to create JdbcTemplate by @sdelamo in #2518
- Add DTO association test by @dstepanov in #2548
- Merge 4.1 by @dstepanov in #2554
- Update micronaut-sql version with correct hibernate dependencies by @radovanradic in #2555
- Added option to support UPDATE RETURNING for JPA/Hibernate by @radovanradic in #2559
- Update common files + Kotlin Java 21 workaround by @dstepanov in #2561
- Support insert returning by @dstepanov in #2567
- Gradle Enterprise rename by @timyates in #2571
- Support delete returning by @dstepanov in #2570
- Allow dynamic sorting for native queries using Sort/Pageable by @radovanradic in #2580
- Fix collection conversion in the mapper by @radovanradic in #2599
Full Changelog: v4.1.4...v4.2.0