Releases: ebean-orm/ebean
13.22.0
Reason-for-version-bump
- Add Query bean filterMany() taking a closure by @rbygrave in #3169
- Follow up #3173 - Change BeanSet clear() with orphanRemoval to lazy load ALL properties (avoid 1+N) by @rbygrave in #3205
What's Changed
- Remove extra space added to the generated SQL via the LIKE expression by @rbygrave in #3168
- Refactor prefer char append by @rbygrave in #3170
- FIX for filterMany with raw expression with single SQL query by @rbygrave in #3171
- Add filterManyRaw() and Deprecate filterMany( ) by @rbygrave in #3172
- Use char-append instead of String-append by @rPraml in #3174
- For Lists.partition() fix for empty list input by @rbygrave in #3175
- #3166 Remove InTuples literal mode by @rbygrave in #3177
- BUG: Using a subquery with idEq or setId is missing the bind value by @jonasPoehler in #3180
- Draft: Refactored delete-by-id by @rPraml in #3178
- Experimental elliminate not in with too many params by @rPraml in #3179
- When delete batching, use number of id properties by @rbygrave in #3182
- #3183 - Fix for: Wrong limit using setMaxRows on delete between calls by @rbygrave in #3186
- Update test only - TestDeleteCascadeById by @rbygrave in #3187
- Bump to ebean-datasource 8.7 by @rbygrave in #3189
- Refactor SpiEbeanServer to use SpiQuery by @rbygrave in #3190
- #3188 Fix findFutureCount() when there is a current transaction in scope by @rbygrave in #3191
- Refactor internal SpiEbeanServer API - transaction from SpiQuery by @rbygrave in #3192
- Deprecate for removal Database.commitTransaction() and Database.rollb… by @rbygrave in #3195
- Use ebean-parent as parent pom for composites and platforms by @rbygrave in #3196
- Update ebean-agent to 13.22.0, required to support change in query bean generation by @rbygrave in #3197
- #3173 - BeanSet lazy loading / Too many DataSource connections used by @rbygrave in #3203
- Follow up #3173 - Add test for BeanSet clear() when hashCode/equals used by @rbygrave in #3204
- Map.clear() on a @onetomany orphanRemoval=true invokes 1+N queries du… by @rbygrave in #3206
Full Changelog: 13.21.0...13.22.0
13.21.0
Reason for version bump
- Bump h2 from 2.1.214 to 2.2.220 by @dependabot in #3136
If using H2 in production, the H2 database will need an upgrade.
Enhancements
- Add Query alsoIf() to conditionally apply changes to a query by @rbygrave in #3160
- Add Lists.partition() helper method and use in DefaultPersister batch deletion by @rbygrave in #3163
- [Postgres] Include buffers in Postgres explain - explain (analyze, buffers) by @rob-bygrave in #3138
- Modify ebean-test H2Database setup to default KEY,VALUE as non-keywords by @rbygrave in #3131
What's Changed
- #3123 Root cause error can be suppressed on initialisation by @rbygrave in #3130
- Bump ebean-datasource to 8.6, increases validation timeout default to 30 secs by @rbygrave in #3140
- #3134 - String cannot be cast to class io.ebean.bean.EntityBean" when deleting entities that use cascade = [CascadeType.ALL] with composite keys by @rbygrave in #3154
- #3133 - For IdClass match on property name by @rbygrave in #3155
- FIX: Query on formula m2o-property uses wrong alias: by @rPraml in #3145
- FIX: Recursive batch flush can save beans in wrong order by @rPraml in #3148
- Tidy IdBinderEmbedded final fields, StringBuilder sizes and reuse code by @rbygrave in #3157
- Followup for #3133 - "Embedded id expansion on parentIds" for SQLServer and DB2 by @rbygrave in #3158
- FIX: Rethrow error in commit path of callbacks by @rPraml in #3147
- Change IdClass property name to _$IdClass$ by @rbygrave in #3159
- Fix to #3133 changes for Postgres adding back support for MultiValue binding by @rbygrave in #3161
- Tidy IdBinderEmbedded - merge use of getIdProperty() and idSelect() by @rbygrave in #3162
- Add support for literal mode for InTuples with lots of entries by @rbygrave in #3165
- BUG: Include drop for foreign keys without index when dropping table by @jonasPoehler in #3164
- InTuples literal mode - don't cache ebean compiled query plan by @rob-bygrave in #3166
Full Changelog: 13.20.1...13.21.0
13.20.1
What's Changed
- #3109 Fix for JtaTransactionManager when no active transaction by @rbygrave in #3122
- Add InTuples expression for multi-column IN expression by @rbygrave in #3124
- #3126 - Incorrect complex indexes generation by @rbygrave in #3127
- Initial DB2Luw9Platform using row_number() for row limiting sql by @rbygrave in #3017
- Add query.usingMaster() to explicitly choose master data source by @rbygrave in #3125
Full Changelog: 13.20.0...13.20.1
13.20.0
Reason-for-version-bump
Also Changed
-
Fixed DbMigration classes (put them in the right place) by @rPraml in #3104
-
Update CONFIGURATION.md with small corrections and comment for includeGeneratedFileComment by @focbenz in #3106
-
#3101 - Support JPA Indexes by @rob-bygrave in #3111
-
Bugfix for wrong batch statement ordering with many2many relations by @jonasPoehler in #3113
-
Followup to #3113, remove unused first BatchControl queue by @rbygrave in #3114
-
Bugfix for NPE when lazyLoading in findEach due to Garbage Collection by @jonasPoehler in #3046
-
#3109 JtaTransactionManager - fix getCurrentTransaction() by @rbygrave in #3118
Full Changelog: 13.19.0...13.20.0
13.19.0
What's Changed
- Fix javax-to-jakarta support for jakarta.transaction by @rbygrave in #3084
- Moved - ebean-autotune, ebean-csv-reader, ebean-joda-time, ebean-jack… by @rbygrave in #3085
- Remove unused and empty ebean-kotlin module by @rbygrave in #3086
- Remove deprecated MetaInfoManager.collectMetricsAsJson() - move to co… by @rbygrave in #3087
- Remove deprecated BeanFinder.server, migrate to BeanFinder.database by @rbygrave in #3089
- Remove deprecated methods from ProfileLocation by @rbygrave in #3090
- Remove deprecated DatabaseConfig.defaultOrderById by @rbygrave in #3091
- Remove deprecated ExpressionList.setOrderBy() - migrate to orderBy() by @rbygrave in #3092
- Remove deprecated Query setLoadBeanCache() - migrate to setBeanCacheMode() by @rbygrave in #3093
- Remove deprecated Query Bean fetchAll() - migrate to fetch() by @rbygrave in #3094
- No functional change, Expr internal reuse of factory() method by @rbygrave in #3095
- Deprecate order() methods on Query, ExpressionList - migrate to orderBy() by @rbygrave in #3096
- Refactor ebean-core internal API - getters -> accessors and tidy by @rbygrave in #3097
- Refactor ebean-core internal API - getters -> accessors by @rbygrave in #3098
Full Changelog: 13.18.0...13.19.0
13.18.0
What's Changed
- Included ebean-migration as a dependency of ebean, ebean-postgres etc by @rbygrave in #3030
- Bump avaje-config dependency to 3.2 by @rbygrave in #3051
- Bump jackson dependency to 2.15.0 by @rbygrave in #3052
- FIX build on system without JAVA_HOME set by @rPraml in #3038
- FIX: Use correct quotes when logging by @rPraml in #3040
- Throw IllegalArgumentException when trying to create unregistered bean rather than NPE by @rPraml in #3039
- Testing - Bump YugabyteDB version for testing to 2.17.3.0-b152 by @rob-bygrave in #3056
- ENH: Add captureMicros and whenCaptured to MetaQueryPlan by @rob-bygrave in #3055
- Use DeployBeanProperty toString() removing getFullBeanName() by @rbygrave in #3063
- No functional change, change use of BeanProperty.value() to BeanProperty.getValue() by @rob-bygrave in #3058
- Property.value use intercept to trigger lazy load by @rPraml in #3057
- From #3060 - Add missing @nullable to ExpressionList.findSingleAttribute() by @rob-bygrave in #3066
- #3064 - JtaTransaction does not use jarkarta prefix for javax.transaction classes by @rob-bygrave in #3067
- Bump avaje-config to 3.4 by @rbygrave in #3069
- DB.refrence throws EntityNotFoundException instead returning null by @rPraml in #3068
- Bump sqlite-jdbc from 3.36.0.3 to 3.41.2.2 in /ebean-test by @dependabot in #3070
- Postgres DDL - Don't use cast when just changing varchar column size by @rob-bygrave in #3071
- Postgres DDL - Use IF NOT EXISTS with ADD COLUMN by @rob-bygrave in #3072
- Bump yugabyte version to 2.18.0.0 by @rob-bygrave in #3073
- Change toString to use (trimmed) with round brackets by @rob-bygrave in #3074
- #3062 - DtoQuery may match the wrong constructor by @rob-bygrave in #3075
- Use Statement for truncate table and postgres version query by @rob-bygrave in #3077
- Refactor internal dto methods to use accessors by @rob-bygrave in #3078
- Bump ebean-migration to 13.8.0 and ebean-ddl-runner to 2.3 by @rbygrave in #3079
- Bump ebean-migration to 13.9.0 - changes API for checkState() by @rbygrave in #3081
Full Changelog: 13.17.4...13.18.0
13.17.4
What's Changed
- [ebean-test] Add support for ebean.test.containers.mirror by @rob-bygrave in #3049
- Implemented missing cache functions for Postgis module. by @Ryszard-Trojnacki in #3036
- Fix SqlTreeLoadBean to only register new beans into load context by @rbygrave in #3050
New Contributors
- @rob-bygrave made their first contribution in #3049
Full Changelog: 13.17.3...13.17.4
13.17.3
13.17.2
13.17.1
What's Changed
- Fix for #3024 NPE when lazy loading after deserialising an entity bean by @rbygrave in #3025
- Add the [+query,+cache,+lazy] query type to the profile label by @rbygrave in #3023
- Update the documentation for test tenants by @rvowles in #3027
- Change MarkedAsDeleted to log batch before state by @rbygrave in #3028
Full Changelog: 13.17.0...13.17.1