Rob Bygrave
0842a3f3e2
Version 13.22.0
13.22.0
2023-08-30 22:17:31 +12:00
Rob Bygrave
bd0cad723d
Add test for Map @OneToMany without orphanRemoval
...
Without orphanRemoval then map.clear() does not invoke any lazy loading.
2023-08-29 22:16:37 +12:00
Rob Bygrave and GitHub
c83c85efc3
Merge pull request #3206 from ebean-orm/feature/3173-beanMap-clear
...
Map.clear() on a @OneToMany orphanRemoval=true invokes 1+N queries du…
2023-08-29 22:10:36 +12:00
Rob Bygrave
b6b8f77213
Map.clear() on a @OneToMany orphanRemoval=true invokes 1+N queries due to MapKey
...
The fix is for LoadManyRequest to detect when a MapKey is on the collection
and include that in the lazy loading query (to avoid the N queries invoked)
2023-08-29 22:08:56 +12:00
Rob Bygrave
770eb06cab
Add test for lazy loading @OneToMany using Map
2023-08-29 22:03:58 +12:00
Rob Bygrave and GitHub
180b4d6e46
Merge pull request #3205 from ebean-orm/feature/3173-beanSet-clear
...
Follow up #3173 - Change BeanSet clear() to lazy load ALL properties
2023-08-29 22:02:07 +12:00
Rob Bygrave
5377454476
Follow up #3173 - Change BeanSet clear() to lazy load ALL properties
...
To avoid the 1+N lazy loading queries that are invoked due to the clear()
when the entity bean in the Set has a hashCode/equals implementation
2023-08-29 21:20:19 +12:00
Rob Bygrave and GitHub
dbbf6dd566
Merge pull request #3204 from ebean-orm/feature/3173-beanSet-clear
...
Follow up #3173 - Add test for BeanSet clear() when hashCode/equals used
2023-08-29 21:16:44 +12:00
Rob Bygrave
4b9d4d0a90
Follow up #3173 - Add test for BeanSet clear() when hashCode/equals used
...
This shows the extra lazy loading that is occurring when clear() is
called on the [Bean]Set DUE to the hashcode/equals implementation that
is present on the entity bean that is in the Set.
2023-08-29 21:13:19 +12:00
Rob Bygrave
90fc4466bf
Follow up #3173 - Add test for BeanSet lazy loading OneToMany with hashCode/equals
2023-08-29 18:43:16 +12:00
Rob Bygrave and GitHub
0d69377f8b
Merge pull request #3203 from ebean-orm/feature/3173-BeanSet
...
#3173 - BeanSet lazy loading / Too many DataSource connections used
2023-08-29 18:32:04 +12:00
Rob Bygrave
359a55d7a5
#3173 - BeanSet lazy loading / Too many DataSource connections used
...
- The error reported was that a DataSource connection pool maxed out
- The symptom was that there was an additional lazy loading queries invoked via the hashCode/equals implementation of ManyToMany Set.
- The fix is for BeanSet init() to lazy load with onlyIds = false, that avoids the extra lazy loading query from being executed
2023-08-29 18:28:09 +12:00
Rob Bygrave and GitHub
b7804e7486
Merge pull request #3197 from ebean-orm/feature/parent-poms
...
Update ebean-agent to 13.22.0, required to support change in query bean generation
2023-08-27 22:48:17 +12:00
Rob Bygrave
febb018036
Update ebean-agent to 13.22.0
2023-08-27 21:59:34 +12:00
Rob Bygrave and GitHub
dc0585246f
Merge pull request #3196 from ebean-orm/feature/parent-poms
...
Use ebean-parent as parent pom for composites and platforms
2023-08-27 21:55:34 +12:00
Rob Bygrave
22c1848f58
Use ebean-parent as parent pom for composites and platforms
2023-08-27 21:53:11 +12:00
Rob Bygrave and GitHub
054ea26893
Merge pull request #3195 from ebean-orm/feature/deprecate-database-commitTransaction
...
Deprecate for removal Database.commitTransaction() and Database.rollb…
2023-08-27 20:32:07 +12:00
Rob Bygrave
8c30b66d39
Add forRemoval = true on existing @Deprecated
2023-08-27 20:31:03 +12:00
Rob Bygrave
14f9fe68f7
Deprecate for removal Database.commitTransaction() and Database.rollbackTransaction()
2023-08-27 20:30:33 +12:00
Rob Bygrave
d56ca5b841
Deprecate for removal Database.commitTransaction() and Database.rollbackTransaction()
...
Migrate to using try-with-resources and transaction.commit() and transaction.rollback()
2023-08-27 20:29:05 +12:00
Rob Bygrave and GitHub
3f97f0f212
Merge pull request #3192 from ebean-orm/feature/spiEbeanServer
...
Refactor internal SpiEbeanServer API - transaction from SpiQuery
2023-08-26 00:19:16 +12:00
Rob Bygrave
60e0c552ab
Fix test for MySql, which does not support delete statement with limit clause
2023-08-26 00:17:57 +12:00
Rob Bygrave
f889628677
No functional change, tidy in persist.dml and dmlbind packages only
2023-08-26 00:15:37 +12:00
Rob Bygrave
128bd171f5
Refactor SpiEbeanServer for SpiSqlQuery with transaction (vs passing transaction)
2023-08-25 23:51:09 +12:00
Rob Bygrave
6402a346a1
Reuse via adding SpiOrmQueryRequest.isGetAllFromBeanCache()
2023-08-25 23:28:07 +12:00
Rob Bygrave
0ab0f9c569
Refactor internal SpiEbeanServer API - transaction from SpiQuery
...
Originally the API took explicit transactions but then the API changed
toward query.usingTransaction(), which means the SpiQuery holds the
explicit transaction.
This change is to update the SpiEbeanServer API to reflect that it can get
explicit transaction from SpiQuery.transaction() rather than pass transaction
around.
Doing this also identified a small bug where L2 cache could be hit when it should
not after there is some update on the transaction (hence the adjustment to the
test TestBeanCache missCount)
2023-08-25 23:15:51 +12:00
Rob Bygrave and GitHub
19e21e17cc
Merge pull request #3191 from ebean-orm/feature/spiEbeanServer
...
#3188 Fix findFutureCount() when there is a current transaction in scope
2023-08-25 21:15:15 +12:00
Rob Bygrave
7e60c66759
Follow up for #3188 Add tests for futures when creating new transaction
2023-08-25 21:05:14 +12:00
Rob Bygrave
4f18dc339f
Follow up for #3188 Fix findFutureList() and findFutureIds() when txn in scope
...
Apply the same fix to findFutureList() and findFutureIds()
2023-08-25 20:56:55 +12:00
Rob Bygrave
60a2626f61
#3188 Fix findFutureCount() when there is a current transaction in scope
2023-08-25 20:32:48 +12:00
Rob Bygrave and GitHub
e3a6f12478
Merge pull request #3190 from ebean-orm/feature/spiEbeanServer
...
Refactor SpiEbeanServer to use SpiQuery
2023-08-25 20:31:29 +12:00
Rob Bygrave
2e980b06f6
Refactor SpiEbeanServer to use SpiQuery
2023-08-25 17:53:23 +12:00
Rob Bygrave and GitHub
b27b5512e3
Merge pull request #3189 from ebean-orm/feature/bump-datasource-dependency
...
Bump to ebean-datasource 8.7
2023-08-25 15:40:39 +12:00
Rob Bygrave
3a013d50d6
Bump to ebean-datasource 8.7
2023-08-25 15:40:09 +12:00
Rob Bygrave
3ebfd2e9e6
Update test only - TestDeleteCascadingOneToMany
2023-08-24 21:01:11 +12:00
Rob Bygrave and GitHub
f51b69445a
Merge pull request #3187 from ebean-orm/feature/3183-deleteQueryIn
...
Update test only - TestDeleteCascadeById
2023-08-24 20:55:14 +12:00
Rob Bygrave
96904d525f
Update test only - TestDeleteCascadeById
2023-08-24 20:54:43 +12:00
Rob Bygrave and GitHub
26fa885adb
Merge pull request #3186 from ebean-orm/feature/3183-deleteQueryIn
...
#3183 - Fix for: Wrong limit using setMaxRows on delete between calls
2023-08-24 20:38:32 +12:00
Rob Bygrave
f4ca4ec476
#3183 - Fix for: Wrong limit using setMaxRows on delete between calls
...
Reproduces when the delete needs to perform a select due to caching or
cascading of the delete
2023-08-24 20:35:11 +12:00
Rob Bygrave
327995526e
Fix tests for Postgres
2023-08-24 20:17:41 +12:00
Rob Bygrave and GitHub
dfbbdc7d58
Merge pull request #3182 from ebean-orm/feature/delete-batch-v2
...
When delete batching, use number of id properties
2023-08-23 10:54:21 +12:00
Rob Bygrave
35894b3d8f
When delete batching, ALSO in deleteManyDetails use number of properties
...
Use int batch = maxDeleteBatch / targetDesc.idBinder().size()
2023-08-22 23:55:55 +12:00
Rob Bygrave
0f219b4cd0
When delete batching, use number of id properties
2023-08-22 23:49:38 +12:00
Rob Bygrave
bfe94786de
Merge branch 'FOCONIS-experimental-elliminate-not-in-with-too-many-params'
2023-08-22 23:43:41 +12:00
Rob Bygrave
6cab2498dc
Merge branch 'experimental-elliminate-not-in-with-too-many-params' of github.com:FOCONIS/ebean into FOCONIS-experimental-elliminate-not-in-with-too-many-params
2023-08-22 23:22:11 +12:00
Rob Bygrave and GitHub
dbe81bdb6e
Merge pull request #3180 from FOCONIS/bugfix/setId-or-idEq-in-subquery
...
BUG: Using a subquery with idEq or setId is missing the bind value
2023-08-22 22:35:31 +12:00
Jonas Pöhler
2e2b3844fe
Tidy test
2023-08-22 11:36:44 +02:00
Jonas Pöhler
78b77dcd82
Potential Fix for using idEq or setId in subquery
2023-08-22 11:04:48 +02:00
Jonas Pöhler
90614adb2b
ADD: Testcase to show missing bind values when using idEq or setId in subquery
2023-08-22 11:04:24 +02:00
Rob Bygrave and GitHub
019ef43fe7
Merge pull request #3177 from ebean-orm/feature/remove-InTuples-literal-mode
...
#3166 Remove InTuples literal mode
2023-08-22 08:23:54 +12:00