Rob Bygrave
45467a3358
Bump ebean-agent
13.22.1
2023-10-06 22:07:01 +13:00
Rob Bygrave
bdc236159b
Bump avaje-config to 3.8
2023-10-06 22:03:45 +13:00
Rob Bygrave and GitHub
f0047ffd75
Merge pull request #3228 from ebean-orm/feature/3209
...
#3209 MetricsAsJson escape the SQL string content
2023-10-04 23:43:07 +13:00
Rob Bygrave
429843c358
#3209 MetricsAsJson escape the SQL string content
2023-10-04 23:15:14 +13:00
Rob Bygrave
eab4f9c739
Add Java 21 to Multi-JDK Build
2023-09-20 23:12:04 +12:00
Rob Bygrave and GitHub
b445857227
Merge pull request #3224 from FOCONIS/use-glassfish-jaxb
...
use glassfish jaxb instead of old com.sun jaxb
2023-09-19 23:14:42 +12:00
Rob Bygrave
dc7b73fc25
Follow up #3223 - modify test, could use @Column(insertable = false, updatable = false) instead of @Formula
2023-09-19 23:03:30 +12:00
Rob Bygrave
d5048db2c6
Follow up #3223 - Add @IdClass example test
2023-09-19 23:02:31 +12:00
Rob Bygrave
0b0b7cbc67
Follow up #3223 - tidy test only
...
Make Embedded Id bean more immutable via final fields and constructor
2023-09-19 22:47:23 +12:00
Rob Bygrave and GitHub
008f132453
Merge pull request #3223 from FOCONIS/fix-find-props-for-id-class
...
Regression of #3133 with formula properties
2023-09-19 22:39:29 +12:00
Roland Praml
6d2038355f
use glassfish jaxb instead of old com.sun jaxb
2023-09-19 08:37:20 +02:00
Roland Praml
004f4deae3
Regression of #3133 with formula properties
2023-09-18 14:59:17 +02:00
Rob Bygrave and GitHub
9223796f02
Merge pull request #3221 from ebean-orm/feature/jakarta-master
...
Move source to Jakarta (use ./jakarta-to-javax.sh)
2023-09-11 23:34:15 +12:00
Rob Bygrave
ff43672f4e
Move source to Jakarta (use ./jakarta-to-javax.sh)
...
Moving the master branch to use jakarta based code and
dependencies. Change to use ./jakarta-to-javax.sh to convert
back to javax when releasing that.
2023-09-11 23:31:01 +12:00
Rob Bygrave
811255200e
Update jakarta-to-javax.sh for jakarta.transaction module name
2023-09-11 23:21:55 +12:00
Rob Bygrave and GitHub
6db1b86e12
Merge pull request #3220 from ebean-orm/feature/3216
...
#3216 - Fix querybean generation for @Embedded beans (fix for 13.22.0…
2023-09-11 23:06:31 +12:00
Rob Bygrave
400e840c22
Fix test for MariaDB which does not support delete with subquery with limit
...
like:
delete from bbookmark_user where id in (select t0.id from bbookmark_user t0 where t0.name = ? limit 10)
2023-09-11 23:05:55 +12:00
Rob Bygrave
f03892a4bd
#3216 - Fix querybean generation for @Embedded beans (fix for 13.22.0 change)
...
Version 13.22.0 added a change to query bean generation that has an issue for
embedded beans. This fixes that issue.
2023-09-11 23:01:44 +12:00
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