Rob Bygrave
e51d9ba2ab
Fix test test-java16 using maven.compiler.release
2024-04-14 22:26:20 +12:00
Rob Bygrave and GitHub
1b1dce90ed
Merge pull request #3385 from ebean-orm/feature/rename-tqrootbean
...
Rename TQRootBean to QueryBean
2024-04-12 22:47:07 +12:00
Rob Bygrave and GitHub
405834fa45
Merge branch 'master' into feature/rename-tqrootbean
2024-04-12 22:46:55 +12:00
Rob Bygrave and GitHub
7720229af9
Merge pull request #3389 from ebean-orm/feature/bump-datasource-2
...
Bump ebean-datasource, ebean-test-containers, ebean-agent
2024-04-12 21:51:51 +12:00
Rob Bygrave
89a294414e
Bump ebean-agent 14.2.1
2024-04-12 21:49:56 +12:00
Rob Bygrave
7bbfc00b86
Bump ebean-datasource and ebean-test-containers
...
ebean-datasource 8.14 has experimental lambda mode
ebean-test-containers has helper method to create S3Client for Localstack
2024-04-11 23:20:37 +12:00
Rob Bygrave and GitHub
d6c76de0a2
Merge pull request #3387 from ebean-orm/feature/bump-parent-4_1-byteBuddy
...
Bump parent to 4.1 with Byte-Buddy net.bytebuddy.experimental=true
2024-04-09 21:32:32 +12:00
Rob Bygrave
36f3986689
Bump avaje junit composite and bytebuddy to 1.14.13
2024-04-09 21:06:52 +12:00
Rob Bygrave
f0f4f13ec6
Bump parent to 4.1 with Byte-Buddy net.bytebuddy.experimental=true
...
Uses maven-surefire-plugin with:
<argLine>-XX:+EnableDynamicAgentLoading -Dnet.bytebuddy.experimental=true</argLine>
2024-04-09 21:03:59 +12:00
Rob Bygrave
08466d42e9
Fix test TestLazyLoadMany with orderBy on query
2024-04-05 22:56:05 +13:00
Rob Bygrave
1f841982a5
Rename TQRootBean to QueryBean
2024-04-05 22:08:26 +13:00
Rob Bygrave
b34704a1fa
Fix kotlin test to use latest kotlin-querybean-generator
2024-04-05 00:29:17 +13:00
Rob Bygrave
0128d64841
Version 14.1.0
2024-04-04 22:54:23 +13:00
Rob Bygrave
68b313f778
Update ebean-agent to 14.1.0
...
This version allows for removal of query bean setRoot() which is no longer needed.
2024-04-04 22:42:06 +13:00
Rob Bygrave and GitHub
fad32c58d8
Merge pull request #3384 from ebean-orm/feature/rename-iquerybean
...
Rename QueryBean interface to IQueryBean (because we want to rename TQRootBean)
2024-04-04 22:36:59 +13:00
Rob Bygrave
8f1ebdb89a
Rename QueryBean interface to IQueryBean (because we want to rename TQRootBean)
...
We want to rename TQRootBean to QueryBean. I can't do that right now because we need to make ebean-agent aware of that first. So yes, perhaps not ideal with IQueryBean but I think it will make sense once TQRootBean is renamed to QueryBean.
2024-04-04 22:35:55 +13:00
Rob Bygrave and GitHub
f7703efde2
Merge pull request #3383 from ebean-orm/feature/orderById
...
#3379 Followup, Move orderById() to common QueryBuilder interface
2024-04-04 22:09:34 +13:00
Rob Bygrave and GitHub
c5ffccb649
Merge pull request #3382 from ebean-orm/fix/3381-pc-clear
...
Fix for #3381 - Empty OneToMany when overflowing LazyLoadBatchSize an…
2024-04-04 22:08:57 +13:00
Rob Bygrave
3e65705bf9
#3379 Followup, Move orderById() to common QueryBuilder interface
...
Effectively this adds it to QueryBeans (where it was missing)
2024-04-04 22:05:17 +13:00
Rob Bygrave
7469a38bbc
#3375 Followup, Temporarily add back setRoot() method to allow time for IntelliJ plugin to be released
...
Adding this means that it will work with an old ebean-agent. It takes a few days to get a new IntelliJ plugin released and we can't wait due to wanting to release the bug fix for #3381
2024-04-04 21:53:18 +13:00
Rob Bygrave
7ea4311662
Fix for #3381 - Empty OneToMany when overflowing LazyLoadBatchSize and mixed queries
...
14.0.0 via #3295 introduced this bug.
#3295 introduced a behaviour where bulk updates clear the persistence context. Now the lazy loading of a BeanCollection works with an assumption that the "parent bean" is in the persistence context (and this assumption is broken with that change for this test case). That is, the bulk update is clearing the persistence context - removing the parent bean BEFORE the lazy loading is invoked ... and that doesn't then work because the parent bean isn't in the persistence context.
This fix means that when lazy loading many's, the parent beans are putIfAbsent into the persistence context.
2024-04-04 20:13:20 +13:00
Rob Bygrave and GitHub
f556e04f58
Merge pull request #3380 from ebean-orm/feature/deprecate-update-transaction
...
Deprecate update(transaction) and delete(transaction) - migrate to usingTransaction(transaction)
2024-04-01 20:57:58 +13:00
Rob Bygrave
d9c75a60a5
Deprecate update(transaction) and delete(transaction) - migrate to usingTransaction(transaction)
...
Migrate to usingTransaction(transaction) to set the transaction explicitly on a delete or update query.
2024-04-01 20:35:59 +13:00
Rob Bygrave and GitHub
225bec7b28
Merge pull request #3379 from ebean-orm/feature/query-builder-interface
...
Add QueryBuilder interface as common API for Query and QueryBean
2024-04-01 19:42:34 +13:00
Rob Bygrave
da44f7e604
Add QueryBuilder interface as common API for Query and QueryBean
2024-04-01 18:58:57 +13:00
Rob Bygrave and GitHub
e4e780588c
Merge pull request #3378 from ebean-orm/feature/QueryBean-interface
...
Add QueryBean interface for query beans to implement
2024-04-01 10:59:38 +13:00
Rob Bygrave
7c8f235550
Add QueryBean interface for query beans to implement
2024-04-01 10:56:25 +13:00
Rob Bygrave and GitHub
9a77ec1567
Merge pull request #3377 from ebean-orm/feature/3374
...
querybeans: #3374 - Add copy() method to TQRootBean
2024-04-01 09:09:24 +13:00
Rob Bygrave
ff426319f5
Fix deprecated annotation for kotlin-querybean-generator
2024-04-01 09:02:13 +13:00
Rob Bygrave
7f56aff9dd
Bump kotlin-querybean-generator
2024-03-31 11:49:58 +13:00
Rob Bygrave
cdbdd98d36
querybeans: #3374 - Add copy() method to TQRootBean
2024-03-31 11:44:32 +13:00
Rob Bygrave and GitHub
7bf030f59c
Merge pull request #3376 from ebean-orm/feature/querybean-txn
...
Deprecate Query bean constructor that takes transaction - migrate to query.usingTransaction() instead
2024-03-31 11:38:26 +13:00
Rob Bygrave
16dca28831
Deprecate Query bean constructor that takes transaction - migrate to usingTransaction()
...
Migrate to query.usingTransaction() instead of the constructor that takes a transaction.
2024-03-31 11:37:32 +13:00
Rob Bygrave and GitHub
678b43693d
Merge pull request #3372 from ebean-orm/feature/1857-SlowQueryBindCapture
...
#1857 Add bind values capture for SlowQueryEvent / SlowQueryListener
2024-03-31 11:34:18 +13:00
Rob Bygrave and GitHub
7ab93a0cdf
Merge pull request #3375 from ebean-orm/feature/tidy-tqrootbean
...
Update TQRootBean with final methods, remove setRoot()
2024-03-31 11:32:54 +13:00
Rob Bygrave
951f942c73
Tidy TQRootBean constructor for alias.
...
Note that this requires the updated ebean-agent, where it will not longer use the setRoot() method which has now been removed.
2024-03-31 11:19:39 +13:00
Rob Bygrave
cf2ec4b81d
Modify TQRootBean making root final
...
Remove the unused setRoot() method
2024-03-31 10:02:41 +13:00
Rob Bygrave
7d1745ba53
Add final modifier to TQRootBean methods
...
As these are never expected to be overwritten
2024-03-31 09:57:42 +13:00
Rob Bygrave and GitHub
7adbdbf532
feat: For SpringJdbcTransactionManager support using CurrentTenantProvider ( #3368 )
...
Note that this only works for Multi-Tenant PARTITION mode where the TenantId is a column on the tables (rather than schema or database multi-tenancy mode).
2024-03-26 22:45:39 +13:00
Rob Bygrave
40d9c88e34
#1857 Add bind values capture for SlowQueryEvent / SlowQueryListener
...
- changes SqlQueryEvent into an interface.
- captures the bind values the slow query used and makes those available via SlowQueryEvent
- also makes the query label and profileLocation available via SlowQueryEvent
2024-03-25 22:52:04 +13:00
Rob Bygrave
ab45ad34e0
Version 14.0.2
2024-03-21 22:07:12 +13:00
Rob Bygrave
24b514f851
Bump ebean-agent, no effective change
2024-03-21 21:55:02 +13:00
Rob Bygrave and GitHub
582fec7ce4
For #3363 disable flushOnQuery before BeanPersistAdapter post-processors ( #3367 )
2024-03-21 21:51:10 +13:00
Rob Bygrave and GitHub
0b11c541c8
fix : #3142 Cascading a OneToMany, set the relationship when the child isn't new or dirty ( #3366 )
...
That is, previously the relationship back from the child to the parent was being updated when the child bean was new or dirty BUT NOT in the case when the child bean was loaded and unchanged.
This fix includes that case updating the ManyToOne side of the relationship on the child when the save is cascaded.
2024-03-21 00:14:54 +13:00
Rob Bygrave and GitHub
540ceab96f
feat: Add query.setHint() to support sql hint as inline comment in select queries ( #3365 )
...
* feat: Add query.setHint() to support sql hint as inline comment in select queries
This is for ORM queries only.
An ORM query like:
new QCustomer()
.setHint("FirstRows")
.select(QCustomer.Alias.id, QCustomer.Alias.name)
.findList();
Produces SQL that includes the hint as an inline comment like:
select /*+ FirstRows */ t0.id, t0.name
from customer t0
* Fix test QOrderTest
2024-03-20 21:48:43 +13:00
Rob Bygrave and GitHub
8b858a073a
feat: Add includeLabelInSql configuration option to include query label as inline comment in generated sql select ( #3362 )
...
* feat: Add includeLabelInSql configuration option to include query label as inline comment in generated sql select
The generated select queries can look like:
select /* MyInnerTest.insert_and_find */ t0.id, ...
Using either query.setLabel() or profile location (which all query beans get by default). This means that tooling looking at sql in the database can more easily relate that sql back to application code.
* More tests for labels with includeLabelInSql=true
* Remove trim when using profileLocation label
2024-03-18 07:38:30 +13:00
Rob Bygrave and GitHub
02dafc9838
Merge pull request #3360 from ebean-orm/feature/refactor-DbExpressionRequest
...
Refactor extract DbExpressionRequest interface for db platform specific expressions
2024-03-08 00:53:56 +13:00
Rob Bygrave
0816810d3b
Refactor extract DbExpressionRequest interface for db platform specific expressions
...
This provides a simpler DbExpressionRequest interface for db platform specific expression adapters (rather than the SpiExpressionRequest which has more features that we don't wish to expose to those expression adapters.
2024-03-07 22:45:21 +13:00
Rob Bygrave
1f6e2ee844
No effective change - update test only ClusterTest, increase wait to 200ms
2024-03-07 20:59:41 +13:00
Rob Bygrave
dc00765a98
Merge branch 'fix-for-db2'
2024-03-07 20:45:57 +13:00
Rob Bygrave
a48b2f4ebe
#3354 Use 4000 for DB Lob detection with distinct query
...
- Use 4000 to match the DB2 logic for considering a column a lob (for distinct etc)
- Rename distinctNoLobs -> platformDistinctNoLobs
- Rename isDbLob() -> isLobForPlatform()
- Rename unselectLobs() -> unselectLobsForPlatform()
2024-03-07 20:45:40 +13:00
Rob Bygrave and GitHub
837563544f
Merge pull request #3357 from ebean-orm/feature/avaje-config-dependency-ContainerConfig
...
Modify ContainerConfig to remove the avaje-config dependency
2024-03-07 20:23:36 +13:00
Rob Bygrave
fd199f406b
Modify ContainerConfig to remove the avaje-config dependency
...
This actually reverts a change that was made in commit:
https://github.com/ebean-orm/ebean/commit/803f1d86428ce3b653276d72207e5a0009b57d16
2024-03-05 21:18:27 +13:00
Rob Bygrave
7ba6e5f67d
Add howto-deploy-to-central.md
2024-03-03 22:08:47 +13:00
Rob Bygrave
6ce42b1ca3
Version 14.0.1
2024-03-03 20:24:26 +13:00
Rob Bygrave and GitHub
89617cefbe
Merge pull request #3353 from ebean-orm/feature/bump-migration-14
...
dep: Bump ebean-migration to 14.0.0, no effective change
2024-03-03 20:19:40 +13:00
Rob Bygrave
dd377621a4
dep: Bump ebean-migration to 14.0.0, no effective change
...
No effective change in that ebean-migration 14.0.0 has no change, it was released to align version numbers with 14.x
2024-03-03 20:19:17 +13:00
Rob Bygrave
d844855462
Bump ebean-agent to 14.0.1
2024-03-03 18:32:14 +13:00
Rob Bygrave and GitHub
f68c25d5f3
Merge pull request #3352 from ebean-orm/feature/dep-common-components
...
dep: Update the common components to 14.0.0 ebean-joda-types, ebean-jackson-jsonnode
2024-03-03 18:29:15 +13:00
Rob Bygrave
61cfc7a979
dep: Update the common components to 14.0.0 ebean-joda-types, ebean-jackson-jsonnode
2024-03-03 17:01:36 +13:00
Rob Bygrave and GitHub
3c98ee7f1b
Merge pull request #3351 from ebean-orm/dep/bump-config
...
Bump test dependencies only - logback and ebean-test-containers
2024-03-03 16:54:56 +13:00
Rob Bygrave
0738316f15
Bump test dependencies only - logback and ebean-test-containers
2024-03-03 16:54:22 +13:00
Rob Bygrave and GitHub
ceb83befa3
Merge pull request #3350 from ebean-orm/dep/bump-config
...
dep: Bump avaje-config to 3.12 - supports AWS AppConfig & Dynamic Logback
2024-03-03 15:42:59 +13:00
Rob Bygrave
a0b04cceda
dep: Bump avaje-config to 3.12 - supports AWS AppConfig & Dynamic Logback
...
This version of avaje-config supports using AWS AppConfig as a configuration source (via avaje-aws-appconfig). It also supports dynamic changing Logback logging levels (via avaje-dynamic-logback).
2024-03-03 15:38:14 +13:00
Rob Bygrave
03edfb5454
git workflow trigger on push to master and pull_request
2024-03-03 15:33:39 +13:00
Rob Bygrave and GitHub
62015451df
Merge pull request #3349 from ebean-orm/feature/dep-ebean-datasource
...
dep: Bump ebean-datasource to 8.12
2024-03-03 15:32:36 +13:00
Rob Bygrave
ed9113efe6
dep: Bump ebean-datasource to 8.12
...
This adds the option to register a JVM shutdown hook (which we generally will not use with ebean as the ebean io.ebean.Database shutdown wants to shutdown the DataSource after any background tasks have completed).
This also adds an experimental feature for use with AWS Lambda to check for old idle connections due to lambda suspension.
2024-03-03 15:24:44 +13:00
Rob Bygrave
334793667e
Add deployment error message for ManyToMany with one of the related beans missing an @Id property
2024-03-03 14:14:23 +13:00
Rob Bygrave and GitHub
351a1c4739
Merge pull request #3348 from ebean-orm/feature/3313-fetchGroup-with-config
...
#3313 Ability to configure fetch batch size when using FetchGroups and query beans
2024-03-03 13:53:52 +13:00
Rob Bygrave
b2de333dcc
#3313 Ability to configure fetch batch size when using FetchGroups and query beans
...
We can do this currently using string paths and properties, this adds support for doing this when using query beans and strong types
2024-03-03 13:47:49 +13:00
Rob Bygrave
6091f7b683
No effective change - tidy test TestJsonImplicitLoaded
2024-03-03 12:25:25 +13:00
Rob Bygrave and GitHub
43fb84cbc0
Merge pull request #3345 from FOCONIS/jsonwrite-loaded-props
...
NEW: Allow control of jsonwrite-loadedprops
2024-03-03 12:23:17 +13:00
Rob Bygrave and GitHub
52a4e9e19b
Merge pull request #3347 from ebean-orm/feature/3337-querybean-imports
...
#3337 Fix querybean-generation to not import the entity bean type
2024-03-03 12:17:42 +13:00
Rob Bygrave
a2cdea24ed
#3337 Fix querybean-generation to not import the entity bean type
...
Use the full canonical name of the entity bean in the generated code.
2024-03-03 12:13:49 +13:00
Rob Bygrave
cd780208e5
Javadoc format only for io.ebean.Database
2024-03-03 11:45:36 +13:00
Rob Bygrave and GitHub
9ce0e923d7
Merge pull request #3346 from ebean-orm/feature/lengthCheck-postgres
...
#3341 String length validation with Postgres PGobject (JSON/JSONB)
2024-03-02 10:26:52 +13:00
Rob Bygrave
9e461e4708
#3341 String length validation with Postgres PGobject (JSON/JSONB)
2024-03-02 10:06:22 +13:00
Rob Bygrave
5fa09a6f90
#3341 String length validation with Postgres PGobject (JSON/JSONB)
2024-03-02 09:52:04 +13:00
Rob Bygrave
6babb2e6f5
Add ebean.lengthCheck for mariadb test run
2024-03-02 09:39:25 +13:00
Rob Bygrave
26abe27e42
Add ebean.lengthCheck for sqlserver17 test run
2024-03-02 09:38:33 +13:00
Rob Bygrave
9b18d46b78
Add ebean.lengthCheck for mysql test run
2024-03-02 09:27:05 +13:00
Rob Bygrave and GitHub
c10865dfaf
Merge pull request #3344 from ebean-orm/feature/bump-avaje-config-311
...
Bump avaje-config to 3.11
2024-02-27 21:22:38 +13:00
Rob Bygrave
2352df309c
Bump avaje-config to 3.11
2024-02-27 21:21:58 +13:00
Rob Bygrave
feb2bd1e15
String length validation tidy up
2024-02-27 21:04:19 +13:00
Rob Bygrave
11c9bdfc6f
Squashed commit of the following:
...
commit 20152e16891582f8ff466a93ec2cf01871824d6d
Author: Rob Bygrave <robin.bygrave@gmail.com >
Date: Tue Feb 27 20:59:51 2024 +1300
#3341 Update DatabaseConfig for fluid style + javadoc
commit 1c495a7384
Author: Roland Praml <roland.praml@foconis.de >
Date: Mon Feb 26 10:25:42 2024 +0100
Fix: Compile errors
commit 574876b758
Merge: df7b04877 77634fc3e
Author: Roland Praml <roland.praml@foconis.de >
Date: Fri Feb 23 16:16:39 2024 +0100
Merge branch 'master-rob' into FOCONIS-string-length-validation
commit df7b04877d
Author: Rob Bygrave <robin.bygrave@gmail.com >
Date: Mon Jun 26 21:16:32 2023 +1200
#3121 BindMaxLength validation
At deploy time derive a BindMaxLength property to use
per BeanProperty
commit 4683877e0b
Merge: 9a4b9d4be d0020ab8c
Author: Rob Bygrave <robin.bygrave@gmail.com >
Date: Fri Jun 23 16:51:34 2023 +1200
Merge branch 'string-length-validation' of github.com:FOCONIS/ebean into FOCONIS-string-length-validation
commit d0020ab8ce
Author: Roland Praml <roland.praml@foconis.de >
Date: Tue Jun 20 14:47:20 2023 +0200
Length validation less invasive
commit 9b3b8ad46a
Author: Roland Praml <roland.praml@foconis.de >
Date: Tue Jun 20 13:03:04 2023 +0200
extended DataBind, so that it could return the last bound object
commit ca3c02bc1c
Author: Roland Praml <roland.praml@foconis.de >
Date: Mon Jun 19 09:52:52 2023 +0200
Failing test for SqlServer
2024-02-27 21:04:06 +13:00
Rob Bygrave and GitHub
4a6fc98395
Merge pull request #3339 from ebean-orm/fix/3338
...
Fix for #3338 Potential shutdown hang with SpringContextShutdownHook …
2024-02-26 21:58:39 +13:00
Rob Bygrave
7322030e90
Fix for #3338 Potential shutdown hang with SpringContextShutdownHook and ebean ShutdownHook
2024-02-26 08:32:44 +13:00
Rob Bygrave and GitHub
187cc0903d
Merge pull request #3329 from ebean-orm/feature/bump-test-dependencies
...
Bump test dependencies for assertj and bytebuddy
2024-02-19 22:04:56 +13:00
Rob Bygrave
1d7a14c8f4
Bump test dependencies for assertj and bytebuddy
2024-02-19 21:51:38 +13:00
Rob Bygrave
c58b7d3da3
Test ebean.properties config values
2024-02-15 22:51:26 +13:00
Rob Bygrave
6b2cdc14aa
Version 14.0.0
2024-02-15 22:48:38 +13:00
Rob Bygrave
6d712a92a0
Bump ebean-agent to 14.0.0, no functional change
2024-02-15 22:21:09 +13:00
Rob Bygrave and GitHub
ea11b0c3b6
Merge pull request #3289 from FOCONIS/fix-nested-user-objects
...
Change semantic of userObjects in nested transaction
2024-02-15 22:10:45 +13:00
Rob Bygrave and GitHub
08e8402d05
Merge pull request #3301 from ebean-orm/feature/3295-PC-clear-on-bulk-update
...
#3295 Clear PersistenceContext on execution of bulk updates or deletes
2024-02-15 22:09:16 +13:00
Rob Bygrave and GitHub
006ad79379
Merge branch 'master' into feature/3295-PC-clear-on-bulk-update
2024-02-15 22:09:03 +13:00
Rob Bygrave and GitHub
0e063549cd
Merge pull request #3327 from ebean-orm/feature/remove-deprecated-commitTransaction
...
Remove deprecated database.commitTransaction(), migrate to transaction.commit()
2024-02-15 22:07:32 +13:00
Rob Bygrave and GitHub
4f0d2cabfb
Merge pull request #3325 from ebean-orm/feature/default-batchSize-100
...
Change default persistBatchSize from 20 to 100 (as a better default value)
2024-02-15 22:07:14 +13:00
Rob Bygrave
80b2d9f983
Remove deprecated database.commitTransaction(), migrate to transaction.commit()
...
Remove the deprecated methods:
- DB.commitTransaction()
- DB.rollbackTransaction()
- DB.endTransaction()
- database.commitTransaction()
- database.rollbackTransaction()
- database.endTransaction()
Migrate to using try-with-resources and transaction.commit(), transaction.rollback()
2024-02-15 21:56:57 +13:00
Rob Bygrave
287d0c467d
#3326 Update the test example of Postgres DML with RETURNING clause to use explicit transactions and transaction.addModification()
2024-02-11 14:25:01 +13:00
Rob Bygrave
a8835379e7
#3326 Add test as example of Postgres DML with RETURNING clause
2024-02-11 13:18:19 +13:00