Rob Bygrave
d2a74ba6d1
#3701 Improve error message when missing dependency ebean-jackson-mapper
2025-11-23 20:17:39 +13:00
Rob Bygrave and GitHub
f7b4edb193
Merge pull request #3704 from ebean-orm/feature/bump-test-deps-bytebuddy
...
Bump test dependencies byte buddy and assertj
2025-11-20 09:35:09 +13:00
robin.bygrave
284c8d4d21
Bump test dependencies byte buddy and assertj
2025-11-20 09:23:39 +13:00
Rob Bygrave and GitHub
59a5c5f9bd
Bump dependency avaje-config to 4.2 ( #3699 )
2025-11-11 07:59:40 +13:00
Rob Bygrave and GitHub
5b04d6eca3
#3551 Log warning for use of mapping column to Class ( #3698 )
...
I think it was a mistake for Ebean to support Class<?> from a security perspective. Instead, Ebean should just use a String <-> Varchar and leave if up to the application to take that String and convert it to a class [and then that potential Class initialisation is owned by the application code and all security considerations around that are owned by the application code].
2025-11-11 07:57:15 +13:00
d5547808a2
PGvector support ( #3696 )
...
* Add pgvector-types module.
* Add missing binder definitions.
Add missing PGbit type registration.
Few tests.
* Add cached bean test.
* Prefer final classes, minor formating only
---------
Co-authored-by: Rob Bygrave <robin.bygrave@gmail.com >
2025-11-09 16:55:51 +13:00
Rob Bygrave
5606c95de5
Version 16.1.1
2025-10-22 22:45:21 +13:00
Rob Bygrave
4c2bd408b0
Bump ebean-agent
2025-10-22 22:42:00 +13:00
Rob Bygrave
db76d5c27c
Test only - add Postgres JSONB raw() expression example
2025-10-22 22:03:09 +13:00
Rob Bygrave
f92c2f8c14
Test only - add test for string id InsertOnConflict
2025-10-22 22:02:40 +13:00
Rob Bygrave and GitHub
51c3065419
3683 - Add AggregateFormulaContext to support group_concat etc ( #3691 )
...
- Add AggregateFormulaContext with ability to override the default via DatabaseBuilder
- Add group_concat, string_agg, listagg to set of known aggregation functions
2025-10-21 22:54:55 +13:00
Rob Bygrave
e46dd66292
Test only - bump to Postgres 17 for PostgresReadOnlyDatabaseTest
2025-10-21 20:55:52 +13:00
Rob Bygrave
3e1451bee7
Merge branch 'master' of github.com:ebean-orm/ebean
2025-10-21 20:54:23 +13:00
Rob Bygrave and GitHub
4ac3c4ddb1
3682 @Aggregation is applied to query if entity also has a @lob column ( #3689 )
...
* Version 16.1.0
* #3682 @Aggregation is applied to query if entity also has a @Lob column
The underling issue was that Aggregation columns should have been marked as default LAZY. This impact was only hit when @Lob column are included which by default lazy fetched, and that means the default select clause determined.
2025-10-20 20:55:18 +13:00
Rob Bygrave
ee8e48902b
Merge branch 'master' of github.com:ebean-orm/ebean
2025-10-19 18:07:18 +13:00
Rob Bygrave and GitHub
c37e752ace
#3681 javadoc query cache ( #3687 )
...
* Version 16.1.0
* Improve javadoc for Query setUseQueryCache() and unmodifiable
Since 16.x a query using the query cache returns unmodifiable object graphs.
2025-10-14 20:04:38 +13:00
Rob Bygrave
c9a6f822ac
Version 16.1.0
2025-09-19 18:48:28 +12:00
Rob Bygrave and GitHub
2231ef9fd1
Bump ebean-agent to 16.1.0 with Java 25 support ( #3680 )
...
Note that the IntelliJ plugin has been updated and published. It should be public in a few days.
2025-09-19 16:25:24 +12:00
Rob Bygrave
3ff1905318
Bump ebean-test-containers to 7.15 with updated ClickHouse support
2025-09-19 16:25:00 +12:00
Rob Bygrave and GitHub
9b4fecff96
Add support for AutoCommit true transactions ( #3679 )
...
* Add support for AutoCommit true transactions
* Update DocStoreTransactionManager
2025-09-19 16:22:59 +12:00
Rob Bygrave and GitHub
6f356fd55e
#3674 Add @Nullable to Query getId(), getForUpdateLockWait(), getForUpdateLockType() ( #3675 )
...
These methods return nullable results, add JSpecify `@Nullable` to correctly indicate this.
2025-09-06 17:22:13 +12:00
Rob Bygrave and GitHub
591f260f5b
Retain filterMany expression when select fetchGroup applied after filterMany ( #3673 )
2025-09-02 22:35:43 +12:00
Rob Bygrave
b361b10571
Version 16.0.1
2025-09-02 14:09:03 +12:00
Rob Bygrave and GitHub
c0e4e548ee
Update the kotlin-maven-plugin for tests and use EA maven profile ( #3671 )
...
* Update the kotlin-maven-plugin for tests
* Add a profile for EA that excludes kotlin-querybean-generator
* For build workflow use maven profile "default"
To ensure the kotlin-querybean-generator, test modules run
* For build workflow use maven profile "default"
To ensure the kotlin-querybean-generator, test modules run
2025-09-02 14:04:59 +12:00
Rob Bygrave
92f3245919
Bump ebean-agent to 16.0.1
2025-09-02 13:37:45 +12:00
Rob Bygrave and GitHub
59c2290916
Bump ebean-migration dependency, fix for setting dbSchema on migrations ( #3670 )
...
Ref: https://github.com/ebean-orm/ebean-migration/pull/163
2025-09-02 12:52:41 +12:00
Rob Bygrave and GitHub
1135eb3f99
#3665 Fix for delete() Skips Bean due to Hash Collision ( #3669 )
...
Change the underlying storage of deleting beans to be by type by id so:
private Map<Class<?>, Set<Object>> deletingBeans;
2025-08-31 22:32:27 +12:00
Rob Bygrave and GitHub
1dccdff7bf
#3664 Fix / support for extra JoinColumns on ManyToOne ( #3668 )
...
* #3664 Fix / support for extra JoinColumns on ManyToOne
Allows for extra JoinColumns on ManyToOne. The extra JoinColumn(s) are
expected to be useful for the case of table partitioning where the extra
join column is used to partition the table. In the test case, the partition
column would be the org_id column and common to both tables (same partition key).
* #3664 Fix / support for extra JoinColumns on ManyToOne
Allows for extra JoinColumns on ManyToOne. The extra JoinColumn(s) are
expected to be useful for the case of table partitioning where the extra
join column is used to partition the table. In the test case, the partition
column would be the org_id column and common to both tables (same partition key).
* #3664 Extend test
* #3664 Tidy up test
2025-08-31 12:52:17 +12:00
Rob Bygrave and GitHub
5f74a53e3e
#3666 Fix for NPE with filterMany() containing or() ( #3667 )
...
For FilterMany with QueryBeans, it creates a queryBean to build the filterMany predicates with. This query bean needed 2 changes for this fix:
1. Needs to set it's internal "root" such that it supports chaining (required for or() etc)
2. The ExpressionFactory needs to be explicitly passed to the expression list (rather than get it from the query which is actually null in this case).
2025-08-31 10:08:07 +12:00
Rob Bygrave
1f9e652ea9
Version 16.0.0
2025-08-25 08:21:49 +12:00
Rob Bygrave
4e592c97ff
Update how to deploy
2025-08-05 23:30:18 +12:00
Rob Bygrave
760d19a10d
Update how to deploy
2025-08-05 23:16:42 +12:00
Rob Bygrave
d2693c3ff2
Version 16.0.0-RC4
2025-08-05 23:15:20 +12:00
Rob Bygrave and GitHub
3324b2bda4
Use autocommit false with findIterate for Postgres ( #3662 )
...
* Use autocommit false with findIterate for Postgres
* Use autocommit false with findIterate for Postgres
* Use autocommit false with FindDto queries for Postgres
* Use autocommit false with SqlQuery findIterate queries for Postgres
* Ensure that TransactionFactory.createReadOnlyTransaction() returns an ImplicitReadOnlyTransaction
This change changes TransactionFactoryTenant.createReadOnlyTransaction() to return a ImplicitReadOnlyTransaction, as that is now used to support Postgres use of cursors with findIterate style queries.
2025-08-05 23:03:28 +12:00
Rob Bygrave and GitHub
1b5e066562
#3654 Fix querybean-generator compiler warning for unclaimed annotations ( #3655 )
...
warning: No processor claimed any of these annotations: /io.ebean.typequery.TypeQueryBean,/io.ebean.typequery.Generated
This fix is required when the compiler is run with -Werror specified
An alternative workaround is to use compiler arg -Xlint:-processing rather than -Xlint:all
2025-07-16 20:34:56 +12:00
Rob Bygrave and GitHub
104e4ec756
Bump ebean-test-containers to 7.14 - Yugabyte read committed support enabled by default ( #3651 )
2025-07-14 09:03:39 +12:00
Rob Bygrave
74a2967a6e
Tests Yugabyte - comment out the TestQueryForUpdate using repeatable read
...
... as its noise there is anyone else reads the logs
2025-07-12 09:38:06 +12:00
Rob Bygrave
e693b12a97
Tests DB2 - ignore TestRawExpressionInterpolation for DB2
2025-07-12 09:30:16 +12:00
Rob Bygrave
48fb9b34bb
Tests Yugabyte - faster test using forUpdate
2025-07-12 09:18:01 +12:00
Rob Bygrave
f64400400a
Tests Oracle - ignore the TestRawExpressionInterpolation for Oracle
2025-07-12 09:09:34 +12:00
Rob Bygrave
d7cc081942
Tests Yugabyte - see if everything else passes
2025-07-12 09:04:02 +12:00
Rob Bygrave
3351548b60
Fix use of JSpecify Nullable annotation in query bean generation
2025-07-11 23:45:31 +12:00
Rob Bygrave
8d9858f57a
Test only - Update logging for test TestQueryForUpdate
2025-07-11 23:35:03 +12:00
Rob Bygrave
9b520bc176
Bump avaje-config to 4.1
2025-07-11 23:22:16 +12:00
Rob Bygrave
44fd8e3a56
Adjust TestQueryForUpdate for Yugabyte - use markAsDirty on repeatable read test
2025-07-11 23:11:45 +12:00
Rob Bygrave
6910016c4d
Adjust TestQueryForUpdate for Yugabyte - use markAsDirty
...
To see if the update has an impact on the 2nd thread waiting
2025-07-11 22:58:02 +12:00
Rob Bygrave
5f8a3c0591
Adjust TestQueryForUpdate for Yugabyte - check repeatable read isolation level
2025-07-11 22:05:31 +12:00
Rob Bygrave and GitHub
0ae6956c1c
Bump ebean-datasource 10.1 with support for initialConnections ( #3650 )
...
So in a K8s deployment, this adds support for having an initial number of connections to create initially (higher that min connections). This allows for a smoother deployment, by effectively having initially more connections than min in order to immediately take production load, and then over time trim back down towards the min connections.
So in k8s I am setting min, initial and max connections, where initial connections is high enough to take full production load straight after readiness true.
2025-07-11 21:26:58 +12:00
Rob Bygrave
2e9c5d8548
Merge branch 'query-cache-oom-for-too-large-beans'
2025-07-11 21:19:21 +12:00
Rob Bygrave
93edc840b3
Add a test that hits the new branch of code
2025-07-11 21:18:00 +12:00
34311785fa
Fix Jackson NCDF Error ( #3639 )
...
* fix jackson NCDF error
split jackson SPI impl into it's own module
* Restore format
* Restore format
* Trim up dependencies
* Rename module to ebean-core-json
---------
Co-authored-by: Rob Bygrave <robin.bygrave@gmail.com >
2025-07-11 20:53:25 +12:00
Rob Bygrave
63929f8ff3
Bump test Yugabyte version to 2.20.11.0-b34
2025-07-11 20:26:12 +12:00
Jonas Fröhler
d918c5117f
no import changes
2025-07-01 09:05:48 +02:00
Jonas Fröhler
dd845a7b0c
Fix imports
2025-07-01 09:02:26 +02:00
Jonas Fröhler
df0e4d57f0
Clean up
2025-06-27 12:17:19 +02:00
Jonas Fröhler
9c7fa25d49
Query Cache OOM test and potential draft for the fix
2025-06-27 12:14:01 +02:00
Rob Bygrave
e82c1a4140
Version 16.0.0-rc3
2025-05-26 21:00:32 +12:00
Rob Bygrave and GitHub
389bf48e3e
Merge pull request #3636 from ebean-orm/feature/explicit-shutdownHook
...
Add DatabaseBuilder.shutdownHook option (programmatic disabling registration of JVM shutdown hook)
2025-05-26 17:24:25 +12:00
Rob Bygrave
3b3b44543e
Bump ebean-test-containers, programmatically get DatabaseBuilder from test container
2025-05-26 17:23:27 +12:00
Rob Bygrave
297f334da5
Add DatabaseBuilder.shutdownHook option (programmatic disabling registration of JVM shutdown hook)
2025-05-26 17:21:15 +12:00
Rob Bygrave
78c7439445
test only - rename TestRawExpressionInterpolation
2025-05-15 08:00:52 +12:00
Rob Bygrave and GitHub
2043ba6411
Merge pull request #3634 from ebean-orm/feature/native-image-otherTypes
...
[native-image] Modify querybean-generator to include AttributeConverters in generated reflect-config.json
2025-05-14 20:49:52 +12:00
Rob Bygrave
437c58001b
[native-image] Modify querybean-generator to include AttributeConverters in generated reflect-config.json
2025-05-14 20:48:07 +12:00
Rob Bygrave
0e812efa7e
Merge branch 'master' of github.com:ebean-orm/ebean
2025-05-14 20:27:56 +12:00
Rob Bygrave and GitHub
80d4d21986
Merge pull request #3632 from FOCONIS/reorg-args-placeholder
...
Db2: Reorg args placeholder
2025-05-06 20:44:00 +12:00
Noemi Praml
fe66b8c242
fix DbMigrationTest
2025-05-06 09:49:18 +02:00
Noemi Praml
206b2b2d3b
migrations
2025-05-06 08:06:48 +02:00
Noemi Praml
c0bc3faea0
fix test
2025-05-06 08:06:40 +02:00
Noemi Praml
3d07e7d804
add: reorgARgs Placeholder
2025-05-06 08:00:58 +02:00
Rob Bygrave
fc124e8318
Tidy pom only
2025-04-30 00:02:30 +12:00
Rob Bygrave
f4fd4f4b09
Version 16.0.0-RC2
2025-04-30 00:01:52 +12:00
Rob Bygrave
16f5311885
Bump parent pom to 5.1 for new maven central deploy
2025-04-29 23:41:48 +12:00
Rob Bygrave and GitHub
75a0675977
Merge pull request #3630 from ebean-orm/feature/fix-ea-build-kotlin
...
Fix EA build, Kotlin not supporting 25-EA release
2025-04-29 23:37:10 +12:00
Rob Bygrave
80ebf4a1ee
Fix EA build, Kotlin not supporting 25-EA release
...
It barfs trying to parse the 25-EA version, means the kotlin-querybean-generator fails the build for the Java Early Release versions.
With this, it will skip the kotlin modules for the Java Early Access release builds.
2025-04-29 23:36:22 +12:00
Rob Bygrave and GitHub
4185beb5aa
Merge pull request #3629 from ebean-orm/feature/bump-datasource-10
...
Bump ebean-datasource to 10.0 (Virtual Threads support via MR Jar)
2025-04-29 23:17:54 +12:00
Rob Bygrave
79908c0164
Bump ebean-datasource to 10.0 (Virtual Threads support via MR Jar)
...
Note that this still supports Java 11.
The 10.0 version of ebean-datasource uses Multi-Version jar such that if running using Java 21+ then it will use Virtual Threads for the background Heartbeat validation and also background closing of connections.
2025-04-29 23:09:49 +12:00
Rob Bygrave
b5a16f42ca
#3626 Add tests for bean property name instead of db column
2025-04-23 22:33:18 +12:00
Gonçalo Andrade
a320a132b3
Fix incorrect usage of bean property name instead of corresponding column
2025-04-22 14:51:38 +01:00
Rob Bygrave and GitHub
9e84e93511
Merge pull request #3621 from FOCONIS/new-db-versions
...
New db versions + testcontainers 7.8
2025-04-17 23:18:05 +12:00
Noemi Praml
6fb40c71ef
update StartDb2
2025-04-16 15:22:08 +02:00
Noemi Praml
202b9ae94a
update to testcontainers 7.8
2025-04-16 14:52:21 +02:00
Noemi Praml
d79b452378
new db2 version
2025-04-16 14:19:11 +02:00
Noemi Praml
78a408dd10
new sqlserver version
2025-04-16 14:19:11 +02:00
Noemi Praml
6af974e432
new mariadb version
2025-04-16 14:19:11 +02:00
Rob Bygrave and GitHub
04a8475291
Merge pull request #3623 from ebean-orm/feature/readOnly-DataSource-mark-nullable
...
Explicitly mark Database.readOnlyDataSource() as @Nullable
2025-04-15 22:25:06 +12:00
Rob Bygrave
c56345f92e
Explicitly mark Database.readOnlyDataSource() as @Nullable
...
Using JSpecify @Nullable on the return for Database.readOnlyDataSource()
2025-04-15 22:24:14 +12:00
Rob Bygrave
ed0a46955e
Explicitly mark Database.readOnlyDataSource() as @Nullable
...
Using JSpecify @Nullable on the return for Database.readOnlyDataSource()
2025-04-15 22:22:08 +12:00
Rob Bygrave
3c4b04a893
Version 16.0.0-rc1
2025-04-09 23:18:27 +12:00
Rob Bygrave and GitHub
ee403bdb83
Merge pull request #3620 from ebean-orm/feature/bump-ebean-agent
...
Bump the ebean-agent to 14.12.0, support for Lombok SuperBuilder
2025-04-09 23:02:46 +12:00
Rob Bygrave
b18abe2221
Bump the ebean-agent to 14.12.0, support for Lombok SuperBuilder
2025-04-09 22:52:39 +12:00
Rob Bygrave and GitHub
d68f372d99
Merge pull request #3619 from ebean-orm/feature/column-length-255
...
For Postgres @Column(length=255) means varchar(255)
2025-04-09 20:22:56 +12:00
Rob Bygrave
c8f769aa2a
For Postgres @Column(length=255) means varchar(255)
...
The `@Column` length defaults to 0 rather than 255, this allows us to detect when it has been explicitly set and thus for Postgres we can now have:
@Column(length=255) mapping to -> varchar(255)
@Column mapping to -> varchar
2025-04-09 20:07:56 +12:00
Rob Bygrave and GitHub
bde626fd45
Merge pull request #3618 from ebean-orm/feature/bump-datasource-95
...
Bump ebean-datasource to 9.5
2025-04-09 20:04:23 +12:00
Rob Bygrave
b828b73b2c
Bump ebean-datasource to 9.5
...
When using DataSourceBuilder for both main and readOnly datasource, the maxConnections for the readOnly will default to the main pool maxConnections.
2025-04-09 20:02:14 +12:00
Rob Bygrave and GitHub
2795a8578f
Merge pull request #3616 from ebean-orm/feature/lazyLoadBatch-100
...
Increase default lazyLoadBatchSize from 10 to 100
2025-04-04 21:15:23 +13:00
Rob Bygrave
bd0a3c2303
Increase default lazyLoadBatchSize from 10 to 100
2025-04-04 21:14:47 +13:00
Rob Bygrave and GitHub
21e50e9d00
Merge pull request #3615 from ebean-orm/feature/3612-redis-exception
...
#3612 Catch all RedisException (rather than only IOException)
2025-04-04 20:47:44 +13:00
Rob Bygrave
88a47bf0a9
#3612 Catch all RedisException (rather than only IOException)
2025-04-04 20:45:59 +13:00
Rob Bygrave
d9a45245f4
Version 16.0.0-beta1
2025-04-03 19:35:14 +13:00
Rob Bygrave and GitHub
7be72df788
Merge pull request #3570 from ebean-orm/feature/improved-readOnly-immutable
...
Unmodifiable - Improved read only immutable entity beans / graphs
2025-04-02 22:24:19 +13:00
Rob Bygrave
42685335e3
Version 14.11.0
2025-04-01 21:32:48 +13:00
Rob Bygrave and GitHub
478a2be405
Merge pull request #3611 from ebean-orm/feature/fix-native-image-mappedSuper
...
Fix NPE with native-image with @MappedSuperclass
2025-04-01 20:45:17 +13:00
Rob Bygrave
ebcac9a503
Fix NPE with native-image with @MappedSuperclass
...
@MappedSuperclass was excluded from the generated reflect-config.json, this PR fixes that.
The missing reflect-config entry for MappedSuperclass means that with native-image the @Id property isn't found when its on a MappedSuperclass, and that ended up as a NPE in BeanPropertyAssocOne.
2025-04-01 20:29:26 +13:00
Rob Bygrave and GitHub
996239c29f
Merge pull request #3610 from ebean-orm/feature/configure-explain
...
Add support to configure EXPLAIN options for query plan capture
2025-04-01 08:07:46 +13:00
Rob Bygrave
caf2772fb3
Put Postgres explain back to default format text for now
2025-04-01 08:07:04 +13:00
Rob Bygrave
1482c4c84f
Add support to configure EXPLAIN options for query plan capture
...
e.g. DatabaseBuilder.queryPlanExplain("explain (verbose)")
Also changes Postgres default explain to be:
explain (analyze, costs, verbose, buffers, format json)
2025-03-31 23:41:16 +13:00
Rob Bygrave and GitHub
792d52b794
Merge pull request #3609 from ebean-orm/feature/queryPlanInit
...
Change QueryPlanInit to support thresholdMicros per hash
2025-03-30 21:41:53 +13:00
Rob Bygrave
aa4ea4904f
Change QueryPlanInit to support thresholdMicros per hash
...
Effectively means that we can provide a thresholdMicros per query plan hash [for the plans that we want collected]
2025-03-30 21:35:20 +13:00
Rob Bygrave
bab839fb38
Change QueryPlanInit to support thresholdMicros per hash
...
Effectively means that we can provide a thresholdMicros per query plan hash [for the plans that we want collected]
2025-03-30 18:33:13 +13:00
Rob Bygrave and GitHub
dde2567ccd
Merge pull request #3608 from ebean-orm/feature/bump-postgres-16
...
Test only - align sqlserver test configuration
2025-03-26 22:50:48 +13:00
Rob Bygrave
7e4d070b75
Test only - update sqlserver test docker image to 2017-CU31-ubuntu-18.04
2025-03-26 22:50:22 +13:00
Rob Bygrave
3151e3f82b
Test only - align sqlserver test configuration
2025-03-26 22:41:00 +13:00
Rob Bygrave and GitHub
c630aaff0e
Merge pull request #3607 from ebean-orm/feature/bump-postgres-16
...
Test only - align mariadb test configuration
2025-03-26 22:37:34 +13:00
Rob Bygrave
67ec848f15
Test only - align mariadb test configuration
2025-03-26 22:37:09 +13:00
Rob Bygrave
57f0734381
Test only - align mariadb test configuration
2025-03-26 22:32:18 +13:00
Rob Bygrave and GitHub
cbd5bf23c9
Merge pull request #3606 from ebean-orm/feature/bump-postgres-16
...
Test only - align mysql and db2 test configuration
2025-03-26 22:31:51 +13:00
Rob Bygrave
5dc664a63f
Test only - align mysql and db2 test configuration
2025-03-26 22:27:35 +13:00
Rob Bygrave and GitHub
d9b53677f2
Merge pull request #3605 from ebean-orm/feature/bump-postgres-16
...
Test only - add logging for datasource to BaseTestCase
2025-03-26 22:17:56 +13:00
Rob Bygrave
f55c2cf3b6
Test only - add logging for datasource to BaseTestCase
2025-03-26 22:14:24 +13:00
Rob Bygrave and GitHub
c98def7ab7
Merge pull request #3604 from ebean-orm/feature/bump-postgres-16
...
Test only - add logging for datasource to BaseTestCase
2025-03-26 22:06:58 +13:00
Rob Bygrave
705e158a70
Test only - add logging for datasource to BaseTestCase
2025-03-26 22:06:35 +13:00
Rob Bygrave and GitHub
569e782e99
Merge pull request #3603 from ebean-orm/feature/bump-postgres-16
...
Update Postgres and Postgis test containers to default to 16
2025-03-26 22:05:59 +13:00
Rob Bygrave
265b92fb12
Update Postgres and Postgis test containers to default to 16
2025-03-26 21:43:08 +13:00
Rob Bygrave
74311fad0a
Update test postgres docker image to 16
2025-03-26 21:34:31 +13:00
Rob Bygrave and GitHub
1eded5682a
Merge pull request #3599 from ebean-orm/feature/bump-datasource-dependency2
...
Bump ebean-datasource dependency to 9.3
2025-03-21 18:42:53 +13:00
Rob Bygrave
ff21bfe1de
Bump ebean-datasource dependency to 9.3
2025-03-21 00:35:41 +13:00
Rob Bygrave and GitHub
86db7fadfd
Merge pull request #3598 from ebean-orm/feature/tidy-QueryCacheEntry
...
Tidy QueryCacheEntry, final class and use accessors
2025-03-20 23:58:56 +13:00
Rob Bygrave
e48b327967
Tidy QueryCacheEntry, final class and use accessors
2025-03-20 23:57:56 +13:00
Rob Bygrave and GitHub
964b3ccf8e
Merge pull request #3597 from ebean-orm/feature/3515-extend
...
#3515 Bug in QueryCache invalidation
2025-03-20 23:55:10 +13:00
Rob Bygrave
eb6906ad2b
#3515 Bug in QueryCache invalidation
...
Effectively the bug fix is in SqlTreeNodeRoot.dependentTables() to include the baseTable in the set of dependent tables
2025-03-20 23:47:21 +13:00
Rob Bygrave and GitHub
86e5ea3627
Merge pull request #3596 from ebean-orm/feature/tidy-future-queries
...
Change findFuture queries such that they can use the read only DataSource
2025-03-19 23:06:38 +13:00
Rob Bygrave
3a5e8290e0
Change findFuture queries such that they can use the read only DataSource
...
Prior to this change they made an explicit transaction if one was needed, and this would always use the Main DataSource.
With this change, when there is no transaction assigned to the query and no active transaction, then the find future query will use the ReadOnly DataSource if it has been configured (e.g. ReadOnly DataSource might point to a read replica database instance).
2025-03-19 23:00:19 +13:00
Rob Bygrave and GitHub
929604e33d
Merge pull request #3593 from LeComptoirDesPharmacies/feature/findFutureMap
...
Add feature findFutureMap
2025-03-19 22:12:06 +13:00
Rob Bygrave and GitHub
2eed68ad61
Merge pull request #3595 from ebean-orm/feature/bump-avaje-config2
...
Bump avaje-config dependency to 4.0
2025-03-19 20:57:13 +13:00
Rob Bygrave
f705560b8b
Bump avaje-config dependency to 4.0
2025-03-19 20:56:40 +13:00
Rob Bygrave
6d791c7b50
Add BeanAccessException extends UnsupportedOperationException
...
And:
LazyInitialisationException extends BeanAccessException ...
UnmodifiableEntityException extends BeanAccessException ...
2025-03-18 22:54:34 +13:00
Rob Bygrave and GitHub
1afe42f4c6
Merge branch 'master' into feature/improved-readOnly-immutable
2025-03-18 22:43:00 +13:00
Rob Bygrave and GitHub
4e7f3c13a0
Merge pull request #3592 from ebean-orm/feature/improved-readOnly-immutable-part2
...
Remove readOnly, migrate to unmodifiable (or use normal mutable)
2025-03-18 22:41:12 +13:00
Thomas
a35db6bdee
Add feature findFutureMap
2025-03-18 09:19:15 +01:00
Rob Bygrave
d7366dec0f
Tidy readOnly removal
2025-03-18 20:59:04 +13:00
Rob Bygrave
ceee1d7489
Remove readOnly from Query
2025-03-18 20:49:26 +13:00
Rob Bygrave
1b23319fa4
Remove readOnly from EntityBeanIntercept and BeanCollection
2025-03-18 20:32:22 +13:00
Rob Bygrave
6f726973ea
Remove most internal use of readOnly
2025-03-18 19:53:13 +13:00
Rob Bygrave
82284b19d5
Bean cache sharable instances as unmodifiable + bean cache queries can also be unmodifiable
...
Entities without *any* relationships can support "sharable instances" with bean caching. This change restores that and uses unmodifiable instances (rather than the old ReadOnly).
Currently, for a query to get shared instances it now needs to explicitly use setUnmodifiable(true) where as before it defaulted to shared instances so that is a behaviour change.
Additionally, bean cache queries were not honouring setUnmodifiable(true) and with these changes they now do.
2025-03-16 23:19:54 +13:00
Rob Bygrave
798d01abd1
LazyInitialisationException, plus javadoc
2025-03-16 21:12:25 +13:00
Rob Bygrave
5136a5a708
Support unmodifiable Embedded and EmbeddedId
2025-03-13 22:52:45 +13:00
Rob Bygrave
fa25d7cc8a
Using Query Cache now implies unmodifiable
...
- Query Cache now holds unmodifiable collections
- Can no longer have readOnly=false with queryCache=true
- Reference beans now also honor unmodifiable
- Effectively no longer does bean cache lookup for reference beans (which it defaulted to when cacheSharableBeans true, e.g. Country entity bean)
2025-03-11 23:50:34 +13:00
Rob Bygrave
c13e09257c
Version 14.10.0
2025-03-11 21:26:00 +13:00
Rob Bygrave and GitHub
ed65433640
Merge pull request #3574 from ebean-orm/feature/3459-postgres-varchar
...
#3459 Postgres varchar default to no length (aka text)
2025-03-11 20:01:26 +13:00
Rob Bygrave and GitHub
08890e9d5a
Merge pull request #3590 from ebean-orm/feature/3580-lookwriter-logWarn
...
Adjust LookupWriter to log at WARN rather than ERROR due to Quarkus dev mode
2025-03-10 23:56:19 +13:00
Rob Bygrave
4273c4af6a
Adjust LookupWriter to log at WARN rather than ERROR due to Quarkus dev mode
...
Die to Quarkus dev mode (#3541 #3582 ) we want to log FilerException at WARN level rather than ERROR. This is because Quarkus dev mode will invoke the annotation processor more than usual, so we expect to fail with the FilerException.
2025-03-10 23:42:38 +13:00
Rob Bygrave and GitHub
51424d9eea
Merge pull request #3580 from SentryMan/feature/lookup-generation
...
[querybean-generator] Generate lookup for modules
2025-03-10 23:31:35 +13:00
Rob Bygrave and GitHub
cf2ab33903
Merge pull request #3589 from ebean-orm/feature/bump-ebean-agent-dependency
...
Bump ebean-agent to 14.10.0
2025-03-10 23:28:05 +13:00
Rob Bygrave
90d8b4fb04
Bump ebean-agent to 14.10.0
2025-03-10 23:27:02 +13:00
Rob Bygrave and GitHub
ff4eeff264
Merge pull request #3588 from ebean-orm/feature/3586-querybean-gen
...
[query bean generation] #3586 public constructor for Embedded bean
2025-03-10 08:02:03 +13:00
Rob Bygrave
64ba343e35
[query bean generation] #3586 public constructor for Embedded bean
2025-03-10 07:59:33 +13:00
Rob Bygrave and GitHub
af3c59c0fd
Merge pull request #3587 from ebean-orm/feature/bump-test-containers-77
...
Bump ebean-test-containers dependency - improved SQL Server handling
2025-03-10 07:40:31 +13:00
Rob Bygrave
ae55d28026
Bump ebean-test-containers dependency - improved SQL Server handling
...
Improvments around collation changes that end up making SQL Server startup flaky
2025-03-10 07:40:02 +13:00
Rob Bygrave and GitHub
ddffc8eee2
Merge pull request #3581 from apflieger/#3573-initfields-prevent-secondary-query
...
OneToMany initialisation via List.of() - was Tests only - new test on multiple many joins
2025-03-10 07:30:40 +13:00
Rob Bygrave
7f1a3a46cf
#3581 ebean-agent 14.10.0 handling for OneToMany initialisation
2025-03-10 07:12:20 +13:00
Rob Bygrave and GitHub
a59f75a468
Merge pull request #3585 from nedge/feature/Create_test_entities
...
Simple Test Entities in preparation for type scoped loading
2025-03-05 08:06:39 +13:00
Eddie Mc Greal
6f1c66ecd6
Simple Test Entities in preparation for type scoped loading
2025-03-04 14:17:08 +01:00
Rob Bygrave
25f6fb6d6f
test only - Almost fix the model for test_manyNonRoot_RootHasNoMany
...
The test was using field access??? when that isn't valid unless we specifically turn on enhancement to support that.
Using proper method access though stops the test from failing.
2025-03-03 21:42:15 +13:00
Rob Bygrave
852def8536
test only - use assertThat hasSize instead of assertEquals for test_manyNonRoot_RootHasNoMany
2025-03-03 21:34:22 +13:00
Rob Bygrave and GitHub
dfb29fd75f
Merge pull request #3578 from mkurz/fix_3577
...
Work around `mysqldump` bug by moving comment one line up
2025-03-03 21:26:40 +13:00
Rob Bygrave and GitHub
80c3501197
Merge pull request #3583 from ebean-orm/feature/revert-3541-3582
...
[querybean-generator] #3582 - Revert #3541 "FilerException trying to write EntityClassRegister with Quarkus dev mode / hot reload "
2025-03-03 21:25:39 +13:00
Rob Bygrave and GitHub
b4ff5748fc
Merge pull request #3579 from FOCONIS/rollbac-or-commit-before-close
...
Rollback/Commit raw connections before close
2025-03-03 21:25:12 +13:00
Rob Bygrave
64f01f0543
[querybean-generator] #3582 - Revert #3541 "FilerException trying to write EntityClassRegister with Quarkus dev mode / hot reload "
...
This reverts commit 69c25309 and applies the required "Fix" in the initModuleInfoBean() method to catch FilerException and log it at WARN level
2025-03-03 20:49:19 +13:00
Arnaud Pflieger
fee6e0f480
Tests only - new test on multiple many joins
...
This test reproduce the problem of #3573
The field initialization `= List.of();` prevents eager secondary query.
2025-02-28 12:20:18 +01:00
Josiah Noel
50b44c4529
Update LookupWriter.java
2025-02-28 00:29:03 -05:00
Josiah Noel
f0c2ba0e28
[Feature] Generate lookup for modules
...
Generate Lookup Class for modular projects
2025-02-27 20:47:16 -05:00
Roland Praml
7643dc9b22
Rollback/Commit raw transactions before close
2025-02-27 10:56:41 +01:00
Matthias Kurz
c49a1b3d71
Work around mysqldump bug by moving comment one line up
...
It seems like mysqldump just adds ;; to the last line and does not
check if that line is a comment. To work around that it's good enough
to move the comment one line up - as long as the END does not end with ;
(which here it does not so that is ok)
2025-02-26 15:36:20 +01:00
Rob Bygrave and GitHub
11e783938c
Merge pull request #3576 from ebean-orm/feature/bump-ebean-test-containers
...
#3511 bump ebean-test-containers dependency
2025-02-26 23:18:43 +13:00
Rob Bygrave
3845861e24
test only - Fix tests due to automatic inline comment included in generated sql like:
...
select /* TestQueryDefaultBatchSize.test_findEach_details__lazy */ t0.order_id, t0.id,
select /* TestQueryDefaultBatchSize.test_findEach_details__lazy */ t0.order_id
2025-02-26 23:15:51 +13:00
Rob Bygrave
d04181865c
test only - update TestOrderByWithMany which is flaky
2025-02-26 23:10:55 +13:00
Rob Bygrave
00d7db31d6
test only - update TestQueryFindIterate which is flaky
2025-02-26 23:07:53 +13:00
Rob Bygrave
6880b5673a
#3511 bump ebean-test-containers dependency
...
ebean-test-containers version 7.6 supports extraDb for MySql and MariaDb, resolving #3511 with extraDb configuration for each extra schema/database required with MySql or MariaDb.
2025-02-26 22:24:05 +13:00
Rob Bygrave and GitHub
e18b59a9dd
Remove deprecated ExtendedServer.setClock() migrate to DatabaseBuilder.clock() ( #3566 )
...
So we can no longer dynamically change the Clock being used and instead for testing purposes need to create the Database with a test clock instance as needed.
Refer to the ExtendedServerTest for an example
2025-02-26 22:16:12 +13:00
Rob Bygrave and GitHub
cc48dced09
#3572 DDL support for non-nullable JoinColumn column ( #3575 )
2025-02-26 21:13:50 +13:00
Rob Bygrave
b13bdc95be
#3459 Postgres varchar default to no length (aka text)
...
Change Postgres platform to default a String to varchar [with no length defined] rather than varchar(255)
2025-02-26 18:53:08 +13:00
Rob Bygrave
0a5c3ced21
Test only - update TestQueryMultiManyOrder sql asserts
...
No effective change.
2025-02-26 00:59:57 +13:00
Rob Bygrave
8ff5f7f72a
Recursive freeze on entity beans
...
Noting that the freeze needs to occur after secondary queries have executed
2025-02-26 00:00:07 +13:00
Rob Bygrave
71944bb8fa
Rename flags -> loaded, add message with property name to UnmodifiableEntityException
2025-02-23 22:25:46 +13:00
Rob Bygrave
24888fc01e
Change InterceptReadWrite to use UnmodifiableEntityException
...
Add unmodified to DefaultOrmQuery query plan description
Fix incorrect merge conflict
2025-02-21 22:24:48 +13:00
Rob Bygrave and GitHub
645d5bb613
Merge branch 'master' into feature/improved-readOnly-immutable
2025-02-21 22:08:38 +13:00
Rob Bygrave
4a6f1a39e0
Add UnloadedPropertyException and UnmodifiableEntityException, change existing use of IllegalStateException
...
- Adds new exceptions UnloadedPropertyException and UnmodifiableEntityException
- Change InterceptReadOnly to use these exception instead of IllegalStateException
- Change collections BeanSet, BeanList, BeanMap from using IllegalStateException to UnsupportedOperationException [to bring these in line with JDK unmodifiable collections]
2025-02-21 22:05:49 +13:00
Rob Bygrave and GitHub
40637bd68c
Allow OneToOne to map to ManyToOne ( #3569 )
2025-02-19 20:00:15 +13:00
8dd438be61
#3564 Fix for nested transaction with batch-mode does not flush ( #3565 )
...
* ADD: Testcase for showing nested transaction with batch-mode not flushing batch on commit
* Update test only - TestNestedTransaction.test_txn_nestedWithInnerBatch()
Update the test to show that we desire the nested transaction changes to be "visible" after a commit regardless of flushOnQuery etc
* #3564 Fix for nested transaction with batch-mode does not flush
- Adds flush() into ScopeTrans.commitTransaction()
- Related fixes in DefaultServer execute() and executeCall() where it was performing extra unnecessary nesting on PersistenceException
* Touch
---------
Co-authored-by: Jonas Pöhler <jonas.poehler@foconis.de >
2025-02-18 07:33:48 +13:00
Rob Bygrave
5e1ad29c5d
Build - add workflow_dispatch trigger to main build
2025-02-17 07:46:20 +13:00
Rob Bygrave
9eeb137907
Tests only - update test-kotlin dependency
2025-02-17 07:33:56 +13:00
Rob Bygrave
578a041c9e
Version 14.9.0
2025-02-12 19:56:14 +13:00
Rob Bygrave
b0b2a0d320
Bump ebean-agent to 14.9.0 with module path support for @Transactional
2025-02-12 19:36:48 +13:00
de81dfc067
Feature: Add a MethodHandles.Lookup SPI ( #3535 )
...
* ServiceLoad lookups
* remove more reflection
* address comments
* Update DefaultTypeManager.java
* Javadoc and format changes
---------
Co-authored-by: Rob Bygrave <robin.bygrave@gmail.com >
2025-02-12 19:30:05 +13:00
Rob Bygrave and GitHub
2bd53cb52b
Merge pull request #3560 from ebean-orm/feature/3533-aop-transactional
...
#3533 Support @Transactional on module path
2025-02-12 18:53:57 +13:00
Rob Bygrave and GitHub
a6d792de64
Merge pull request #3563 from ebean-orm/feature/remove-deprecated-queryOrder
...
Remove deprecated order() migrate to orderBy()
2025-02-12 18:52:53 +13:00
Rob Bygrave and GitHub
c73d83ef33
Merge pull request #3562 from ebean-orm/feature/remove-deprecated-queryUpdTxn
...
Remove deprecated query.update(txn) & query.delete(txn)
2025-02-12 18:52:18 +13:00
Rob Bygrave
9f1b4ba758
Remove deprecated order() migrate to orderBy()
2025-02-12 18:47:16 +13:00
Rob Bygrave and GitHub
1f7117da25
Merge pull request #3561 from ebean-orm/feature/remove-deprecated-servletContextListener
...
Remove deprecated ServletContextListener
2025-02-12 18:43:55 +13:00
Rob Bygrave
f0ceab43bf
Remove deprecated query.update(txn) & query.delete(txn)
...
Migrate to query.usingTransaction(txn)
2025-02-12 18:42:23 +13:00
Rob Bygrave
1107e4ea4c
Remove deprecated ServletContextListener
2025-02-12 18:38:17 +13:00
Rob Bygrave and GitHub
4dd8a5dfea
Merge pull request #3558 from ebean-orm/feature/3557-filterMany-removal
...
#3557 [Query beans] Remove deprecated filterMany(String expressions, Object... params) from generated query beans
2025-02-12 18:01:39 +13:00
Rob Bygrave and GitHub
195edf0355
Merge pull request #3514 from ebean-orm/feature/querybean-txn-ctor
...
Remove deprecated QueryBean constructor that takes transaction, migrate to query.usingTransaction()
2025-02-12 18:01:03 +13:00
Rob Bygrave and GitHub
e9c438adab
Merge branch 'master' into feature/querybean-txn-ctor
2025-02-12 15:05:57 +13:00
Rob Bygrave
e45cf5fab9
#3533 Bump ebean-agent to use the new AOPTransactionScope
2025-02-12 00:27:07 +13:00
Rob Bygrave and GitHub
1bf9d1dd4f
Merge pull request #3559 from ebean-orm/feature/findCount-noId
...
FindCount on entity bean without @Id + platform wants column alias
2025-02-12 00:01:24 +13:00
Rob Bygrave
657920c4a2
#3533 Support @Transactional on module path
...
As HelpScopeTrans isn't in an exported package it's use fails with an error in module path. This adds AOPTransactionScope in the exported package io.ebean.plugin and moves the required methods from SpiEbeanServer to SpiServer to support this move.
This also requires an associate change in ebean-agent to support this feature which will be in ebean-agent 14.9.0.
2025-02-11 23:57:18 +13:00
Rob Bygrave
6c47107436
FindCount on entity bean without @Id + platform wants column alias
...
Internally in CQueryBuilder only use query.setSelectId(); for findCount when the entity bean has a @Id property [which it doesn't strictly need and likely won't have for view based entities]
2025-02-11 23:04:02 +13:00
Rob Bygrave
88cf4e001a
#3557 [Query beans] Remove deprecated filterMany(String expressions, Object... params) from generated query beans, migrate to filterManyRaw()
2025-02-11 22:06:20 +13:00
Rob Bygrave and GitHub
7f1fcbcf92
Merge pull request #3556 from ebean-orm/feature/test-containers-bump
...
Bump ebean-test-containers to 7.5
2025-02-10 21:55:18 +13:00
Rob Bygrave
95d5d5e467
Bump ebean-test-containers to 7.5
2025-02-10 21:54:54 +13:00
Rob Bygrave and GitHub
2dde23d577
Merge pull request #3555 from ebean-orm/feature/3503-kotlin-querybean-gen-DbMap
...
#3503 - Fix kotlin-querybean-generator for use of @DbMap
2025-02-10 14:01:09 +13:00
Rob Bygrave
1ec26d13f9
#3503 - Fix kotlin-querybean-generator for use of @DbMap
2025-02-10 11:35:44 +13:00
Rob Bygrave
bb1b55e897
Reduce frequency of running yugabyte CI test
2025-02-09 22:45:10 +13:00
Rob Bygrave
fb07447df4
Fix test only - test-kotlin bump kotlin-querybean-generator version
2025-02-09 22:43:02 +13:00
Rob Bygrave
ad18b6573c
Version 14.8.2
2025-02-09 22:07:28 +13:00
Rob Bygrave and GitHub
11632c3a6e
Merge pull request #3554 from ebean-orm/feature/3536-kotlin-querybean-generator
...
#3536 kotlin-querybean-generator update for filterMany() changes
2025-02-09 21:37:38 +13:00
Rob Bygrave
b066f9c072
#3536 kotlin-querybean-generator update for filterMany() changes
...
Brings the kotlin-querybean-generator up to date with the [java] querybean-generator in terms of how it has specific "associated beans" for ToOne and ToMany type relationships
2025-02-09 21:24:51 +13:00
Rob Bygrave
1e38ed9efc
Test only, add Embedded bean as an inner class for querybean-generation
2025-02-09 21:19:39 +13:00
Roland Praml and GitHub
2d48dd2fef
Pass create/configOptions to DB2 test container ( #3550 )
...
This allows to pass collation/pagesize settings via the
`ebean.test.createOptions=` property to the container
2025-02-08 19:47:20 +13:00
Rob Bygrave and GitHub
60aa899a34
#3552 Column alias required for SQL Server + findCount + distinct ( #3553 )
...
* #3552 Column alias required for SQL Server + findCount + distinct
- Modifies CQueryBuilder with the main fix which is to use the database platform selectCountWithColumnAlias for all distinct queries [and later disable it for single column case]
- Modifies SqlTreeBuilder because we need to NOT use the column alias for the count distinct SINGLE COLUMN case. So change here to:
- build the root SqlTreeNode first as part of constructor
- use rootNode.isSingleProperty() to NOT use column alias for the single column case
- Hence need to initialise DefaultDbSqlContext AFTER the root SqlTreeNode
- Modifies DefaultDbSqlContext with no effective change, just columnIndex++ ONLY when we are actually using column alias
- Modifies H2Platform to also use selectCountWithColumnAlias true
* #3552 selectCountWithColumnAlias true for MariaDB and MySql
Plus fix TestRowCount for Oracle platform
2025-02-08 19:33:03 +13:00
Rob Bygrave and GitHub
c38c75fdec
Merge pull request #3549 from ebean-orm/feature/3546
...
#3546 Reduce compiler warning on query bean generated code
2025-01-28 23:34:23 +13:00
Rob Bygrave
cf275f4edd
#3546 Reduce compiler warning on query bean generated code
...
This method is effectively internal and called by generated code that also is Deprecated(forRemoval = true)
2025-01-28 23:31:23 +13:00
Rob Bygrave
121f4afed8
#3545 Support @SQL entity with a OneToOne with EmbeddedId
...
- @Sql entity
- Has a OneToOne or ManyToOne to a bean that uses @EmbeddedId
2025-01-28 23:26:09 +13:00
Rob Bygrave
c8621c3a29
Put back the querybean-generator version
2025-01-16 21:42:02 +13:00
Rob Bygrave and GitHub
f83da15d5e
Merge pull request #3542 from ebean-orm/feature/3542-quarkus
...
[querybean-generator] FilerException trying to write EntityClassRegister with Quarkus dev mode / hot reload #3541
2025-01-16 16:46:46 +13:00
Rob Bygrave
52729d9802
Missing import and adjust warning message
2025-01-16 16:40:43 +13:00
Rob Bygrave
69c25309da
[querybean-generator] FilerException trying to write EntityClassRegister with Quarkus dev mode / hot reload #3541
...
Drop to log at WARN level when we catch FilerException such that Quarkus dev mode / hot reload works
2025-01-16 16:31:52 +13:00
Rob Bygrave
723a12fd66
#3538 Restoring batchMode etc with nested transaction scopes
...
This change is a simplification such that these batch attributes are always stored and restored for nested ScopeTrans.
There are no expensive side effects of doing it this way.
This fixes issues where the batch attributes are changed after the ScopeTrans is created (like the test for this PR).
2025-01-16 08:15:22 +13:00
Noemi Praml
5cf74f1ee9
Add: failing Unittest
2025-01-08 14:43:49 +01:00
Rob Bygrave
2c18b4fe97
Version 14.8.1
2024-12-20 15:34:07 +13:00
Rob Bygrave
9c9fb70999
Bump ebean agent to align
2024-12-20 15:24:08 +13:00
Rob Bygrave and GitHub
18e6374a60
Merge pull request #3532 from ebean-orm/feature/sql-play-ebean
...
#3408 play-ebean inline sql comment in test generated scripts
2024-12-20 14:59:54 +13:00
Rob Bygrave
3fea5ce93d
#3408 play-ebean inline sql comment in test generated scripts
2024-12-20 14:58:10 +13:00
Rob Bygrave and GitHub
43675468ae
Merge pull request #3523 from FOCONIS/streaming-tests
...
set defaultFetchBuffer in findEach/findList in SQL and DTO Queries
2024-12-19 11:04:01 +13:00
Rob Bygrave and GitHub
1c038f4629
Merge pull request #3408 from mkurz/meta_datastored-procedures-DDL
...
Add metadata to stored procedures for 3rd party libs
2024-12-19 10:47:14 +13:00
Rob Bygrave and GitHub
49b6f3dec9
Merge pull request #3530 from SentryMan/fix/dto-lookup
...
FIX: IllegalAccessError on modular DTO queries
2024-12-19 09:07:45 +13:00
Josiah Noel
346e30217a
Merge remote-tracking branch 'upstream/master' into fix/dto-lookup
2024-12-18 14:56:15 -05:00
Rob Bygrave
5dc165debf
Fix test TestLazyJoin2
2024-12-19 08:42:37 +13:00
Josiah Noel
d5cb7c3ff1
fix illegal access error on modular dtos
...
When using a dto query on a JPMS application, I get an IllegalAccessError even though I export and open my package.
2024-12-18 00:20:08 -05:00
Roland Praml
4d08dce033
set defaultFetchBuffer in findEach/findList in relational/orm Queries
2024-11-27 17:05:15 +01:00
Roland Praml
beef4407e3
Add failing testcase
2024-11-27 17:02:15 +01:00
Matthias Kurz
e99f922de6
Add metadata to stored procedures for 3rd party libs
...
This way a third party can parse the meta data and knows how
to handle the bodies of a stored procedure
2024-11-26 23:36:30 +01:00
Rob Bygrave
1fef4f7c11
Add explicit query.setUnmodifiable(true) [for readOnly=true + disableLazyLoad=true]
...
Although this is ok, makes me think that another option is just to have query.setReadOnly(true)
to mean ... readOnly + disableLazyLoad + error reading unloaded property or collection. As in,
readOnly true without these extra things does not that good [as in the existing readOnly does
not seem very good/safe/useful to use].
2024-11-20 23:01:59 +13:00
Rob Bygrave and GitHub
103e8323f2
Merge pull request #3519 from FOCONIS/no-codechange-test-cleanup
...
No productive code change: cleanup basic test data
2024-11-07 21:32:35 +13:00
Noemi Praml
59ed0bb015
fix delete contacts
2024-11-05 14:04:32 +01:00
Noemi Praml and Noemi Praml
c0eb896e1f
No productive code change: cleanup basic test data ( #114 )
...
* Erste Tests bereinigt
* fix
* noch mehr Tests bereinigt
* modify output
* reformat
2024-11-05 13:16:47 +01:00
Noemi Praml
3ab3f81fa3
Add failing concurrent test
2024-10-31 08:21:37 +01:00
Rob Bygrave
ddb4b9d3e5
Remove deprecated QueryBean constructor that takes transaction, migrate to query.usingTransaction()
...
Remove the constructor for QueryBean that takes transaction. Migrate code to use query.usingTransaction() instead.
2024-10-31 18:22:43 +13:00
Rob Bygrave
7035b4c74c
tests only: Update versions in test / test-kotlin maven plugin and apt
2024-10-31 18:19:36 +13:00
Rob Bygrave and GitHub
85a575e353
Merge pull request #3513 from ebean-orm/feature/bump-parent-javadoc
...
Bump java11-oss parent and tidy javadoc
2024-10-31 17:14:52 +13:00
robin.bygrave
eb05be286c
Bump java11-oss parent and tidy javadoc
2024-10-31 14:55:43 +13:00
Rob Bygrave and GitHub
9f5a77fdaa
Merge pull request #3509 from FOCONIS/javadoc-fixes
...
RFC: Fix some javadoc issues
2024-10-31 14:47:46 +13:00
Roland Praml
42ee75f212
RFC: Fix some javadoc issues
2024-10-25 08:46:34 +02:00
Rob Bygrave
4610dbb26e
Version 14.8.0
2024-10-25 14:28:58 +13:00
Rob Bygrave and GitHub
b26382f99c
Merge pull request #3507 from ebean-orm/feature/agent-1480
...
Bump ebean-agent to 14.8.0
2024-10-25 14:18:20 +13:00
Rob Bygrave
2fba89f846
Bump ebean-agent to 14.8.0
...
This ebean agent is required to support the fluid QueryBuilder API change.
2024-10-25 14:17:46 +13:00
Rob Bygrave
e4f13da868
Merge branch 'dynamic-property-group-by'
2024-10-24 16:13:01 +13:00
Rob Bygrave
32cd081fce
#3504 Tidy test only and final method
2024-10-24 16:12:45 +13:00
Rob Bygrave
e6f92eaceb
ReadOnly Immutable query WIP
2024-10-24 16:02:50 +13:00
Rob Bygrave
f6da332998
Add test for TestReflectiveModificationUpdate
2024-10-24 08:37:02 +13:00
Alexander Wagner
d8f321d87b
Fix: dynamic property group by with alias
2024-10-22 13:24:12 +02:00
Rob Bygrave
c868d8a23b
Fix test for Postgres TestDistinctOnQuery
2024-10-22 19:00:52 +13:00
Rob Bygrave
d77c14d866
Fix test for Postgres TestDistinctOnQuery
2024-10-22 08:14:01 +13:00
Rob Bygrave and GitHub
423d906848
Merge pull request #3499 from ebean-orm/feature/3489
...
Potentially breaking change: Throw PersistenceException for unknown property in select clause
2024-10-18 19:25:46 +13:00
Rob Bygrave
100d33cc94
Potentially breaking change: Throw PersistenceException for unknown property in select clause
2024-10-18 19:12:53 +13:00
Rob Bygrave and GitHub
20cf6a9c00
Merge pull request #3498 from ebean-orm/feature/migrate-avaje-lang-to-jspecify
...
Migrate to JSpecify NullMarked/Nullable from avaje.lang NonNullApi/Nullable
2024-10-18 16:56:19 +13:00
Rob Bygrave and GitHub
e2c12268f7
Merge branch 'master' into feature/migrate-avaje-lang-to-jspecify
2024-10-18 16:52:53 +13:00
Rob Bygrave and GitHub
937f6296e1
Merge pull request #3497 from ebean-orm/feature/fluid-self-querybuilder
...
Fix SELF of QueryBuilder, QueryBean, IQueryBean for fluid use
2024-10-18 16:48:26 +13:00
Rob Bygrave
24749567d2
Migrate to JSpecify NullMarked/Nullable from avaje.lang NonNullApi/Nullable
2024-10-18 16:46:41 +13:00
Rob Bygrave
7045240778
Merge branch 'transaction-readonly'
2024-10-18 16:27:18 +13:00
Rob Bygrave
6ceea85b94
Move markNotQueryOnly() into init transaction methods of PersistRequest
2024-10-18 16:26:49 +13:00
Rob Bygrave
e04ac50800
Fix SELF of QueryBuilder, QueryBean, IQueryBean for fluid use
...
Currently, the SELF response type of QueryBuilder returns as Object when really we want it to return the SELF generic type of QueryBuilder, QueryBean, IQueryBean etc
Note that this change requires an updated ebean-agent
2024-10-18 16:18:39 +13:00
Noemi Praml
a452fc0e21
call request.markNotQueryOnly
2024-10-17 16:30:42 +02:00
Noemi Praml
4438d5db7d
Fixes in DefaultPersister
2024-10-17 16:19:19 +02:00
Noemi Praml
9ca6fa31e5
more tests
2024-10-17 16:19:03 +02:00
Rob Bygrave and GitHub
e0a00bea34
Merge pull request #3496 from mumbler6/fix-flaky
...
fixed flaky test in ToStringBuilderTest.java
2024-10-17 21:36:15 +13:00
mumbler6
b24b549298
fixed flaky test in ToStringBuilderTest.java
2024-10-15 22:41:51 -05:00
Rob Bygrave
51d0f4efcc
Fix test TestOrderedList for Postgres ANY
2024-10-15 22:14:45 +13:00
Noemi Praml
e08985d7c5
suggested solution
2024-10-14 16:53:48 +02:00
Noemi Praml
4f984ff2d4
add: failing test
2024-10-14 16:53:00 +02:00
Rob Bygrave
b6843c6db0
Version 14.7.0
2024-10-10 23:48:29 +13:00
Rob Bygrave
57782c05b5
Update ebean-agent to 14.7.0 (Updates to ASM 9.7.1)
2024-10-10 23:46:37 +13:00
Rob Bygrave and GitHub
a2ee8b61f8
Merge pull request #3487 from FOCONIS/batch-ordering-bug
...
Bug: Batch ordering - Regression introduced in version 13.26.1, insertAll() leaves batchMode=true enabled ... when it should not
2024-10-10 22:31:15 +13:00
Rob Bygrave and GitHub
1225a2776f
Merge pull request #3485 from FOCONIS/ordercolumn-cache-queries
...
Fix orderBy for cached many requests
2024-10-10 22:30:23 +13:00
Rob Bygrave and GitHub
a499c8c26a
Merge pull request #3493 from ebean-orm/feature/3490
...
#3490 filterMany generates invalid sql when the many side uses @EmbeddedId to model composite primary key
2024-10-10 22:27:58 +13:00
Rob Bygrave
8e627c756f
#3490 filterMany generates invalid sql when the many side uses @EmbeddedId to model composite primary key
2024-10-10 22:24:24 +13:00
Rob Bygrave
45cc78bb0a
#3490 filterMany generates invalid sql when the many side uses @EmbeddedId to model composite primary key
2024-10-10 22:11:20 +13:00
Rob Bygrave
38a8e95b36
#3491 Update javadocs and SqlQuery Postgres ANY tests
2024-10-10 20:08:03 +13:00
Rob Bygrave and GitHub
bca381104b
Merge pull request #3491 from ajcamilo/master
...
Add setArrayParameter to SqlQuery
2024-10-10 20:07:08 +13:00
André Camilo
7e0c6795ff
add setArrayParameter to SqlQuery
2024-10-09 13:24:52 +01:00
Roland Praml
8b4804be22
Fix: after DB.inserAll, transaction may stay in batchmode
2024-10-08 13:16:37 +02:00
Roland Praml
a8418a3d75
Created test for batch escalation
2024-10-08 13:16:32 +02:00
Rob Bygrave and GitHub
bb0f63e38a
Merge pull request #3488 from ebean-orm/dependabot/maven/ebean-test/commons-io-commons-io-2.14.0
...
Bump commons-io:commons-io from 2.7 to 2.14.0 in /ebean-test
2024-10-08 18:28:32 +13:00
Rob Bygrave
978ed26b78
Update ebean-agent 14.6.1 for #3484
2024-10-08 18:23:46 +13:00
Rob Bygrave
5cfa7295f8
Update tests for test-kotlin with latest agent
2024-10-08 18:17:08 +13:00
Noemi Praml
88d8b4fb5e
Fix orderBy for cached many requests
2024-10-07 15:04:46 +02:00
dependabot[bot] and GitHub
93155d3c8f
Bump commons-io:commons-io from 2.7 to 2.14.0 in /ebean-test
...
Bumps commons-io:commons-io from 2.7 to 2.14.0.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-03 18:46:07 +00:00
Rob Bygrave
6d5f740337
TestQueryPaging example to H2 and Postgres due to use of nulls first
...
nulls first isn't supports by mysql
2024-09-20 21:21:57 +12:00
Rob Bygrave
bd06b57144
Add valhalla EA build
2024-09-18 20:49:40 +12:00
Rob Bygrave
77383f4d29
Version 14.6.0
2024-09-17 22:23:13 +12:00
Rob Bygrave
29fcbbfe97
Bump ebean-agent to 14.6.0
2024-09-17 22:09:44 +12:00
Rob Bygrave and GitHub
d9e0a35efb
Merge pull request #3481 from ebean-orm/feature/boostrap-service
...
Use io.ebean.service.BootstrapService as common marker interface for service loading bootstrapped services
2024-09-17 22:03:52 +12:00
Rob Bygrave and GitHub
0c01ecbac7
Merge pull request #3478 from ebean-orm/feature/3462
...
#3462 Add Paging as alternative to maxRows + firstRow + orderBy
2024-09-17 22:03:13 +12:00
Rob Bygrave and GitHub
5095583cc8
Merge pull request #3473 from ebean-orm/feature/3455-query-beans-improvement
...
#3455 - Improve query beans such that filterMany() expressions are only on ToMany relationships
2024-09-17 22:02:40 +12:00
Rob Bygrave
92f04a2353
Use io.ebean.service.BootstrapService as common marker interface for service loading bootstrapped services
2024-09-17 21:58:19 +12:00
Rob Bygrave and GitHub
acbce35182
Merge pull request #3480 from ebean-orm/feature/emptylist
...
Change EmptyPagedList to be deprecated from public use
2024-09-16 21:07:40 +12:00
Rob Bygrave
d6165f4b17
Change EmptyPagedList to be deprecated from public use
...
This should never have been public really
2024-09-16 20:58:40 +12:00
Rob Bygrave
95656360a9
Mark OrderBy constructors as deprecated
...
The plan is to migrate OrderBy into an interface
2024-09-15 19:21:17 +12:00
Rob Bygrave
65d7df5488
#3462 Add Paging as alternative to maxRows + firstRow + orderBy
...
Paging is an alternative to specifying the maxRows + firstRow + orderBy on a query.
Example:
```java
var orderBy = OrderBy.of("lastName desc nulls first, firstName asc");
var paging = Paging.of(0, 100, orderBy);
DB.find(Contact.class)
.setPaging(paging)
.where().startsWith("lastName", "foo")
.findList();
```
2024-09-12 22:54:35 +12:00
Rob Bygrave
12648cd37d
Fix test TestQueryFilterMany
2024-09-12 20:31:37 +12:00
Rob Bygrave
edbd13c075
Version 14.5.2
2024-09-11 20:58:13 +12:00
Rob Bygrave and GitHub
0964980a69
Merge pull request #3474 from ebean-orm/feature/3453
...
#3453 - Different filterMany behavior when no matches found
2024-09-11 20:27:50 +12:00
Rob Bygrave
dc7d349366
#3453 - Different filterMany behavior when no matches found
2024-09-10 23:11:44 +12:00
Rob Bygrave
a2e66bcb89
#3455 - Improve query beans such that filterMany() expressions are only on ToMany relationships
...
Use protected helper methods on TQAssocBean for the filterMany() methods generated onto AssocMany beans.
2024-09-10 00:24:41 +12:00
Rob Bygrave
4d79815779
#3455 - Improve query beans such that filterMany() expressions are only on ToMany relationships
...
Changes the query bean code generation for "Associated beans" to have separate AssocOne and AssocMany for *ToOne and *ToMany relationships.
Moves the filterMany() expressions such that they are only available on the *ToMany relationships.
2024-09-09 23:26:13 +12:00
Rob Bygrave and GitHub
cbac00a89f
Merge pull request #3472 from ebean-orm/feature/3461-take-2
...
#3461 - Add also() for query beans
2024-09-09 22:18:40 +12:00
Rob Bygrave
33b2c398f6
#3461 - Add also() for query beans
2024-09-09 22:13:04 +12:00
Rob Bygrave and GitHub
416f50e782
Merge pull request #3471 from ebean-orm/feature/bump-agent
...
Bump ebean-agent, will support future improvement to query beans with…
2024-09-09 21:59:20 +12:00
Rob Bygrave
2e8a6ceb53
Bump ebean-agent, will support future improvement to query beans with AssocOne AssocMany
2024-09-09 21:54:09 +12:00
Rob Bygrave
f0fd9003ad
Version 14.5.1
2024-09-02 22:03:55 +12:00
Rob Bygrave
dfeffb7c5e
Bump ebean-agent, no effective change
2024-09-02 21:50:21 +12:00
Rob Bygrave and GitHub
4b0fcb1d29
Merge pull request #3469 from ebean-orm/feature/orderBy2
...
#3466 - Duplicated entities in findMany when a ManyToOne relation is fetched
2024-09-02 20:53:42 +12:00
Rob Bygrave
a7fe5d2b84
#3466 - Duplicated entities in findMany when a ManyToOne relation is fetched (Postgresql)
...
Internally in OrmQueryDetail.markQueryJoins() the SpiQueryManyJoin is determined and returned. This change uses this and effectively removes the code from OrmQueryRequest.determineMany() and BeanDescriptor.manyProperty() which was the source of this issue (performing a similar task but not correctly taking the full path into account and hence the source of this bug).
2024-09-02 19:28:11 +12:00
Rob Bygrave and GitHub
30327fe33e
Improve existing test asserts around order by clause ( #3467 )
2024-09-02 08:25:19 +12:00
Rob Bygrave
1e013331d4
Improve existing test asserts around order by clause
2024-09-02 08:19:02 +12:00
Rob Bygrave and GitHub
f8964707d9
#3463 - Ignore queryBean.select(null) calls ( #3464 )
2024-08-27 21:01:51 +12:00
Rob Bygrave and GitHub
86c7de2de8
ebean-test: Modify postgis platform to support both net.postgis and og.postgis ( #3449 )
...
* ebean-test: Modify postgis platform to support both net.postgis and org.postgis
Use Class.forName() to test existence of net.postgis.jdbc.DriverWrapperLW and if available use that driver rather than the older org.postgis.DriverWrapperLW one.
Also support explicitly specifying the driver to use via test property - ebean.test.postgis.driver
* Update test for net postgis to use a separate container
* Remove NetPostgisSetup as PostgisSetup handles both cases now
2024-08-27 20:44:03 +12:00
Michael Benz and GitHub
53b4d94933
Update README.md fixing broken Foconis logo ( #3457 )
...
Updated the Foconis AG logo with the new Foconis Analytics URL which was broken because of a deep link to a Yoomla logo that is no longer available.
2024-08-27 20:40:36 +12:00
Rob Bygrave
b0ec23e53c
Update tests to ensure ResetBasicData.reset() was called early
2024-08-04 18:59:46 +12:00
Rob Bygrave
20caae532c
Adjust ResetBasicData with more output
2024-08-04 18:15:22 +12:00
Rob Bygrave
4369481c1a
Adjust ResetBasicData with more output
2024-08-04 18:11:36 +12:00
Rob Bygrave
c94426b6b4
Update tests config for ebean-net-postgis-types
2024-07-22 22:01:42 +12:00
Rob Bygrave
b2ff32e88c
Update tests config for ebean-net-postgis-types
2024-07-22 21:47:48 +12:00
Rob Bygrave
3bd8dfa7bf
Update tests config for ebean-net-postgis-types
2024-07-22 20:12:27 +12:00
Rob Bygrave
0e7abdd137
Version 14.5.0
2024-07-22 08:33:34 +12:00
Ryszard Trojnacki and GitHub
9135f2cd3e
New Postgis types / Java modules ( #3448 )
...
* Added modules `ebean-net-postgis-types`, `ebean-net-postgis` for new `net.postgis` geometry types without support for GeoLatte.
* Added missing `uses` entry in `module-info.java` for `io.ebean.api`.
2024-07-22 07:31:30 +12:00
Rob Bygrave
6785d5703e
Update tests for DB2 forUpdate()
2024-07-17 08:01:26 +12:00
Rob Bygrave
0a95ac7fa0
Update tests for DB2 forUpdate()
2024-07-16 22:18:29 +12:00
Rob Bygrave and GitHub
bbd5636689
#3444 - DBName with hyphens creates invalid code ( #3447 )
2024-07-16 20:22:08 +12:00
Noemi Praml and GitHub
9f0eaef3d8
Db2 forupdate fix ( #3446 )
...
* ADD failing test for db2
* ADD: possible fix
2024-07-16 19:37:20 +12:00
Rob Bygrave
a5d2a574d3
#3433 - Put test back from desc -> description as desc as a column name isn't widely supported by other databases
2024-07-08 21:54:35 +12:00
Rob Bygrave and GitHub
6e7adbb8e4
#3433 - Entity property called desc used with query order by desc generates bad sql ( #3438 )
2024-07-04 00:05:01 +12:00
Rob Bygrave and GitHub
8913bead89
[ebean-migration] #3434 - Connection is closed error running migration with MySql and Hikari ( #3437 )
2024-07-02 23:47:14 +12:00
Rob Bygrave and GitHub
cdf1cd8487
[ebean-redis] Fix for #3432 empty value for natural keys ( #3436 )
2024-07-02 22:06:57 +12:00
Rob Bygrave and GitHub
2582c4b653
Bump to ebean-agent 14.5.0/15.5.0 with ASM 9.7 for JDK 22 and 23 support ( #3435 )
2024-07-02 18:08:08 +12:00
Rob Bygrave
a9e3e2ea43
Version 14.4.0
2024-06-26 22:33:04 +12:00
Rob Bygrave
834ce971b3
Bump ebean-agent, no functional change
2024-06-26 22:19:58 +12:00
Rob Bygrave and GitHub
5c27f89677
Change includeLabelInSql to default to true ( #3431 )
...
To disable this use ebean.includeLabelInSql=false or set this via
`DatabaseBuilder.includeLabelInSql(false)``
2024-06-26 20:32:19 +12:00
Rob Bygrave and GitHub
bfbbb7e7a7
Bump ebean-datasource dependency to 9.0 with automatic Lambda mode detection ( #3430 )
...
* Bump ebean-datasource dependency to 9.0 with automatic Lambda mode detection
ebean-datasource 9.0 automatically detects when it is running in AWS Lambda
and will set validateOnHeartbeat to false. In Lambda we don't want to validate
connections in background threads that can suspend in Lambda.
2024-06-26 20:27:49 +12:00
Rob Bygrave and GitHub
a8947c7d2f
Bump ebean-migration dependency to 14.1.0 with fastMode enabled by default ( #3429 )
...
ebean-migration 14.1.0 defaults fastMode to true. This means that it first
runs a fast check that all migrations have been run. If that does not succeed
for any reason it runs the normal migration process.
2024-06-26 20:15:21 +12:00
Rob Bygrave and GitHub
d5401efb08
#3423 JtaTransactionManager keeps reference to already closed scope (and Transaction/connection ThreadLocal) when JtaTxnListener#afterCompletion is called by a different thread ( #3424 )
...
Bugfix for "Long/slow transaction reaper" in Wildfire that can close/rollback a transaction in a different thread. Fix is to use active flag to inactivate the transaction and detect that case in JtaTransactionManager.getCurrentTransaction()
2024-06-21 07:57:31 +12:00
Rob Bygrave
925ceaf441
Update build actions/setup-java@v4
2024-06-14 21:47:43 +12:00
Rob Bygrave
c5fea13ca5
Update build actions/setup-java@v4
2024-06-14 21:42:06 +12:00
Rob Bygrave
6fa3759786
Add 23 to build
2024-06-14 21:34:54 +12:00
Rob Bygrave
1c5288b6ec
Version 14.3.1
2024-06-10 19:26:40 +12:00
Rob Bygrave
b485fb7440
Bump ebean-agent to 14.3.1
2024-06-10 19:02:41 +12:00
Rob Bygrave and GitHub
b07f909dd3
Bump parent pom to 4.2 with EA changes to annotation processing ( #3417 )
...
* Bump parent pom to 4.2 with EA changes to annotation processing
Annotation processing needs to be explicitly on in JDK 24 EA builds
* Bump bytebuddy version in ebean-test and use experimental=true for EA builds
* Use parent pom 4.3 with bytebuddy.experimental=true by default for surefire
2024-06-10 18:36:40 +12:00
Rob Bygrave and GitHub
fa92e7a4b7
Merge pull request #3416 from ebean-orm/feature/querybean-gen-suppresswarnings
...
Change QueryBean to use protected constructors, suppress warning on generated query beans
2024-06-10 12:39:53 +12:00
Rob Bygrave
1823ef288a
Change QueryBean to use protected constructors, suppress warning on generated query beans
2024-06-07 22:48:04 +12:00
Rob Bygrave and GitHub
7b2128b02f
Merge pull request #3415 from ebean-orm/feature/3412
...
#3412 Use existing/parent transaction with fetch query on ToMany paths
2024-06-07 22:31:24 +12:00
Rob Bygrave
3c84a902e8
Followup for #3412 - Refactor DefaultBeanLoader move query creation logic into LoadBeanRequest
...
Move the query creation, using transaction and configure into LoadBeanRequest. This code then looks more like that of LoadManyRequest.
2024-06-07 22:26:48 +12:00
Rob Bygrave
3ce95c34cb
#3412 Use existing/parent transaction with fetch query on ToMany paths
...
Fix such that LoadManyRequest uses the parent requests transaction rather
than obtain a new read only transaction to perform the fetch query.
2024-06-07 22:16:02 +12:00
Rob Bygrave and GitHub
d817dcb549
Merge pull request #3413 from ebean-orm/feature/fix-logging-naturalKey
...
Fix logging message for naturalKey MPUT to include the natural key properties
2024-05-31 21:57:24 +12:00
Rob Bygrave and GitHub
5f218e1fdb
Merge pull request #3409 from kaiyaok2/fix_NIO
...
Fixed non-idempotent tests in `TestCacheSerialization`
2024-05-31 21:56:33 +12:00
Rob Bygrave
59daf5689a
Fix logging message for naturalKey MPUT to include the natural key properties
2024-05-31 21:52:38 +12:00
kaiyaok2
44efed5cd9
fixed non-idempotent tests
2024-05-26 23:57:12 +08:00
Rob Bygrave
be28314e31
Update test kotlin to use kotlin-querybean-generator 14.3.0
...
Fixes the test as we now use QueryBean etc rather than TQRootBean
2024-05-16 00:05:55 +12:00
Rob Bygrave
053d82b54a
Version 14.3.0
2024-05-14 22:10:08 +12:00
Rob Bygrave and GitHub
0141e2effa
Merge pull request #3401 from ebean-orm/feature/agent-14.3.0
...
Bump to ebean-agent 14.3.0
2024-05-14 21:18:12 +12:00
Rob Bygrave
a33bb4d4c8
Bump to ebean-agent 14.3.0
2024-05-14 21:15:13 +12:00
Rob Bygrave and GitHub
d0348210be
Merge pull request #3398 from ebean-orm/feature/NoTimeZone
...
mysql: Support "NoTimeZone" to bypass MySQL JDBC use of Timezone Calendar
2024-05-01 20:30:56 +12:00
Rob Bygrave and GitHub
753cf66cf0
Merge pull request #3397 from ebean-orm/feature/distinctOn
...
Postgres: Add support for DISTINCT ON query clause
2024-05-01 20:30:41 +12:00
Rob Bygrave
4a8b4dd5fb
mysql: Support "NoTimeZone" to bypass MySQL JDBC use of Timezone Calendar
...
Refer #3393 #3394
2024-05-01 20:24:10 +12:00
robin.bygrave
2faf7008db
#3397 DISTINCT ON subquery support
2024-05-01 20:07:16 +12:00
Rob Bygrave
76c25cbe83
Postgres: Add support for DISTINCT ON query clause - fix test ebean.properties
2024-05-01 01:04:33 +12:00
Rob Bygrave
5c36a725f4
Postgres: Add support for DISTINCT ON query clause
2024-05-01 00:50:37 +12:00
Rob Bygrave and GitHub
b99d4f5a51
Merge pull request #3396 from ebean-orm/feature/limitOffset-with-labelComment
...
Include inline sql hint and comment in limit/offset sql
2024-04-30 23:57:04 +12:00
Rob Bygrave
7d18942357
Include inline sql hint and comment in limit/offset sql
2024-04-30 23:46:36 +12:00
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
e0eda4f8be
#3370 LimitOffsetPagedList add getTotalCount cache ( #3373 )
...
* #3370 LimitOffsetPagedList add getTotalCount cache
* Move totalRowCount check to inside the lock
* No change, format only on LimitOffsetPagedList
---------
Co-authored-by: Rob Bygrave <robin.bygrave@gmail.com >
2024-04-01 11:08: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
Roland Praml
a48e96c7e9
FIX broken test for DB2
2024-03-04 10:02:05 +01: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
Roland Praml
eed487ad26
NEW: Allow control of jsonwrite-loadedprops
2024-02-29 13:26:22 +01: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
77634fc3eb
Merge pull request #3336 from ebean-orm/feature/bump-postgresql-4272
...
Bump postgresql dependency to 42.7.2
2024-02-21 16:11:24 +13:00
robin.bygrave
ed8d4b5fc4
Bump postgresql dependency to 42.7.2
2024-02-21 16:05:13 +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
Rob Bygrave
e4df20b9dc
Update test TestPersistCascade with default batch size 100
2024-02-10 13:28:04 +13:00
Rob Bygrave
261b13ef4b
Version 13.26.1
2024-02-10 12:40:30 +13:00
Rob Bygrave
7639034d7c
Bump ebean-agent to 13.26.1 (no functional change here)
2024-02-10 12:17:47 +13:00
Rob Bygrave
e6e53e0d93
Change default persistBatchSize from 20 to 100 (as a better default value)
...
This is the batch size used with PreparedStatement executeBatch() with
batched inserts, updates and deletes. 20 is really on the low side and
bumping this default to 100 seems good and right.
2024-02-10 12:15:50 +13:00
Rob Bygrave and GitHub
c71971eb5c
Merge pull request #3322 from ebean-orm/fix/3319
...
(fix) Future queries do not trigger flush on BatchedPstmtHolder for #3319
2024-02-10 12:12:47 +13:00
Rob Bygrave and GitHub
357af58db4
Merge pull request #3324 from ebean-orm/feature/postgres_insertOnConflict
...
Add support for Postgres INSERT ON CONFLICT update | nothing
2024-02-10 12:08:44 +13:00
Rob Bygrave and GitHub
0abdb1550a
Merge pull request #3310 from Ichtil/one_to_many_list_clear_test
...
Previous entities are not deleted when replacing OneToMany collection with a new one
2024-02-10 12:03:16 +13:00
Rob Bygrave
c32fc814f6
Add support for insert/insertAll with both options and explicit transaction
2024-02-10 12:00:32 +13:00
Rob Bygrave
8e035939dc
Add support for Postgres INSERT ON CONFLICT update | nothing
...
Adds InsertOptions with ability to control the options used
for insert with Postgres around ON CONFLICT.
2024-02-10 01:07:44 +13:00
Rob Bygrave
edf98ee250
Fix test OneToManyListMarkAsDirtyTest with some wait time
2024-02-09 15:46:34 +13:00
Rob Bygrave
5f0a75a130
No effective change, update test renaming internal variables
2024-02-09 15:26:28 +13:00
Rob Bygrave
d2f16cbf6a
#3310 Fix for orphanRemoval with updated parent and 'vanilla collection'
...
The issue fixed here is a timing one where the parent bean is being updated.
The updated parent bean has its internal state reset before the cascade down
to the SaveManyBeans where for this case it needs to identify is the 'vanilla'
collection has set (via setChildren(new ArrayList()).
This fix is a change that for updated beans the dirtyProperties is always obtained
and then use this for the isChangedProperty() check.
2024-02-09 15:24:47 +13:00
Rob Bygrave
04ba81d12f
#3310 Update test only, reuse existing entity beans
...
- Reuse the existing OmBeanListParent and child
- Simplify the test setup code
- Rename test methods to maybe better reflect what I think is failing
Noting that markAsDirty doesn't specifically have anything to do with this bug but it's more on whether the parent bean is dirty or dirty (markAsDirty is just a way to make the parent bean dirty).
2024-02-09 08:30:42 +13:00
Rob Bygrave
f63e7ed5af
Add test only for orphan removal to TestOrphanRemovalOverwrite
...
Using clear() and add() when the same id value is used
2024-02-08 00:14:22 +13:00
Rob Bygrave
66940c0f14
Update tests only for BeanList BeanSet BeanMap
...
Use Product entity with equals/hashCode implementation added via ebean enhancement
2024-02-07 22:29:05 +13:00
Rob Bygrave
1f48b3a6b3
(fix) Future queries do not trigger flush on BatchedPstmtHolder for #3319
...
This change is that findFutureCount, findFutureList, findFutureIds do not trigger a flush on BatchedPstmtHolder.
This is to address the possible ConcurrentModificationException that could occur at BatchedPstmtHolder.closeStatements(BatchedPstmtHolder.java:153)
2024-02-03 08:20:58 +13:00
Rob Bygrave and GitHub
7d368097e9
Merge pull request #3321 from ebean-orm/feature/tidy-OrmQueryRequest-readOnly
...
Tidy OrmQueryRequest isReadOnly, just use query.isReadOnly instead
2024-02-02 14:44:06 +13:00
Rob Bygrave
c849e29316
Tidy OrmQueryRequest isReadOnly, just use query.isReadOnly instead
2024-02-02 14:43:31 +13:00
Rob Bygrave and GitHub
c78a3dd6c4
Merge pull request #3318 from FOCONIS/fix-db2-test
...
Exclude test for DB2
2024-01-31 22:57:49 +13:00
Noemi Praml
a4455ddbf2
Exclude test for DB2
2024-01-31 10:17:16 +01:00
Rob Bygrave and GitHub
9787af77e4
Merge pull request #3315 from FOCONIS/db2-select-for-update
...
ADD: DB2 supports select .. for update queries
2024-01-30 22:53:19 +13:00
Noemi Praml
3786fb09a5
ADD: DB2 supports select .. for update queries
2024-01-29 15:12:21 +01:00
Rob Bygrave
f34e7b6003
Version 13.26.0
2024-01-20 22:01:30 +13:00
Rob Bygrave and GitHub
089dd8e364
Merge pull request #3311 from ebean-orm/feature/findSingleAttributeOrEmpty
...
enh: Add findSingleAttributeOrEmpty() returning Optional
2024-01-19 15:23:27 +13:00
Rob Bygrave
44770382fb
enh: Add findSingleAttributeOrEmpty() returning Optional
2024-01-19 10:41:54 +13:00
Rob Bygrave
6645e5b9ec
Update the test comments in TestPersistenceContextQueryScope
...
To reflect the behaviour with #3295
2024-01-19 08:58:19 +13:00
Rob Bygrave and GitHub
2a62d413cc
Merge pull request #3308 from Incanus3/fix/querybean_or_with_exists
...
fix TQRootBean.exists() when used with .or()
2024-01-19 08:29:29 +13:00
Rob Bygrave
0046d983cb
Adjust test such that table alias does not clash
...
The .raw("contact.customer_id = customer.id") clashes as "customer.id" is
a logical path from contact
2024-01-19 08:14:58 +13:00
Jan Klička
006e33cb3e
One to many replacing collection failing test cases
2024-01-18 17:29:24 +01:00
Jan Klička
e80e8e027a
One to many replacing collection failing test cases
2024-01-18 16:49:04 +01:00
Jakub Kaláb
2e1b52d7d4
WIP: fix TQRootBean.exists() when used with .or()
2024-01-18 11:32:34 +01:00
Rob Bygrave and GitHub
09d5163396
Merge pull request #3307 from ebean-orm/feature/bump-avaje-config-310
...
Bump avaje-config to version 3.10
2024-01-18 22:30:42 +13:00
Rob Bygrave
a6a38b9a92
Bump avaje-config to version 3.10
2024-01-18 22:30:09 +13:00
Rob Bygrave and GitHub
bd4521b240
Merge pull request #3306 from ebean-orm/feature/querybean-deprecated
...
Add forRemoval=true for existing Deprecated methods in query beans
2024-01-18 22:28:23 +13:00
Rob Bygrave
8a7379879b
Add forRemoval=true for existing Deprecated methods in query beans
2024-01-18 20:15:57 +13:00
Rob Bygrave and GitHub
b78dd6f79a
Merge pull request #3304 from ebean-orm/feature/3296-querybean-copy
...
#3296 Add copy() method to query beans
2024-01-15 22:38:30 +13:00
Rob Bygrave
4ebb5fd112
#3296 Add copy() method to query beans
2024-01-15 22:30:17 +13:00
Rob Bygrave
487368976f
Tidy SimpleQueryBeanWriter internals
2024-01-15 22:03:17 +13:00
Rob Bygrave
c6defceec9
Add additional test for filterMany() with fetch()
2024-01-15 21:02:47 +13:00
Rob Bygrave
3576aafffc
#3295 When isAutoPersistUpdates is used do NOT clear the PersistenceContext
...
Also make improvements to the test asserts in TestPersistenceContextQueryScope
2024-01-10 23:23:47 +13:00
Rob Bygrave
66234249c6
#3295 Clear PersistenceContext on execution of bulk updates or deletes
...
Using SqlUpdate or an ORM Update query clear the appropriate part of
the PersistenceContext. The effect is that ORM queries executed after
a bulk update will effectively load a fresh copy of the data from the
database and will not reuse an instance from the persistence context
if the bean in question had already been loaded.
2024-01-09 07:44:27 +13:00
Rob Bygrave and GitHub
8ed3b765ec
Merge pull request #3299 from ebean-orm/feature/3294-warnings
...
#3294 Suppress compiler warnings on generated query bean `filterMany()`
2023-12-22 08:33:31 +13:00
Rob Bygrave and GitHub
fcbcc53e27
Merge pull request #3298 from ebean-orm/feature/add-usingConnection-dtoQuery
...
Add usingConnection() to DtoQuery and SqlQuery
2023-12-22 08:25:48 +13:00
Rob Bygrave
b377e1a618
#3294 Suppress compiler warnings on generated query bean filterMany()
2023-12-22 08:24:54 +13:00
Rob Bygrave
a0f612ed71
Add usingConnection() to DtoQuery and SqlQuery
...
For the case where we have a java.sql.Connection and wish
to execute a DtoQuery or SqlQuery using that connection.
2023-12-21 21:24:02 +13:00
Roland Praml
6f64821584
Change semantic of userObjects in nested transaction
2023-12-08 14:50:30 +01:00
Rob Bygrave
47e97a77a8
Version 13.25.2
2023-12-07 20:18:40 +13:00
Rob Bygrave
e8d3f50bb4
Bump ebean-agent to 13.25.2
2023-12-07 19:57:55 +13:00
Rob Bygrave and GitHub
716cfaf938
Merge pull request #3286 from ebean-orm/feature/dbarray-instant-and-localdate
...
Add support for LocalDate and Instant with DbArray
2023-12-07 08:57:40 +13:00
robin.bygrave
7cd9e5ee03
Add support for LocalDate and Instant with DbArray
2023-12-06 14:54:30 +13:00
Rob Bygrave
f9c9bea623
Follow up for #3248 - add betweenProperties on query bean
2023-12-06 00:40:57 +13:00
Rob Bygrave
720832122c
Follow up for #3248 - add betweenProperties on query bean
2023-12-05 23:32:16 +13:00
Rob Bygrave and GitHub
7b635acf56
Merge pull request #3284 from raphaelNguyen/master
...
Expose betweenProperties on query bean
2023-12-05 23:21:26 +13:00
Raphael Nguyen
6b7efe65d7
Expose betweenProperties on query bean
2023-12-05 15:08:16 +11:00
Rob Bygrave and GitHub
03cd4000f0
Merge pull request #3282 from ebean-orm/dependabot/maven/ch.qos.logback-logback-classic-1.3.12
...
Bump ch.qos.logback:logback-classic from 1.2.11 to 1.3.12
2023-11-30 13:59:21 +13:00
Rob Bygrave and GitHub
dfd6434b59
Merge pull request #3281 from ebean-orm/dependabot/maven/tests/test-java16/ch.qos.logback-logback-classic-1.3.12
...
Bump ch.qos.logback:logback-classic from 1.2.11 to 1.3.12 in /tests/test-java16
2023-11-30 13:59:08 +13:00
Rob Bygrave and GitHub
4e7480237b
Merge pull request #3283 from ebean-orm/dependabot/maven/tests/test-kotlin/ch.qos.logback-logback-classic-1.3.12
...
Bump ch.qos.logback:logback-classic from 1.2.11 to 1.3.12 in /tests/test-kotlin
2023-11-30 13:58:52 +13:00
dependabot[bot] and GitHub
9bfcf07486
Bump ch.qos.logback:logback-classic in /tests/test-kotlin
...
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback ) from 1.2.11 to 1.3.12.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.11...v_1.3.12 )
---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-29 22:15:53 +00:00
dependabot[bot] and GitHub
b1f1344057
Bump ch.qos.logback:logback-classic from 1.2.11 to 1.3.12
...
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback ) from 1.2.11 to 1.3.12.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.11...v_1.3.12 )
---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-29 22:13:26 +00:00
dependabot[bot] and GitHub
07201c1519
Bump ch.qos.logback:logback-classic in /tests/test-java16
...
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback ) from 1.2.11 to 1.3.12.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.11...v_1.3.12 )
---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-29 22:13:04 +00:00
Rob Bygrave and GitHub
455a9fdffc
Merge pull request #3280 from ebean-orm/feature/typequery-imports-tqrootbean
...
QueryBean generation - use full class names for TQRootBean, TQAssocBean
2023-11-29 01:21:00 +13:00
Rob Bygrave
3f67425727
QueryBean generation - conditionally fully qualify the property types
...
If there is an entity bean short name clash like PString, PLong, etc then
fully qualify all the property types in the generated code, otherwise use
imports for the property types.
2023-11-29 00:46:56 +13:00
Rob Bygrave
3fd9ae06db
QueryBean generation - use fully qualify use of DB
2023-11-29 00:22:45 +13:00
Rob Bygrave
a8ce726e47
QueryBean generation - use full class names for TQRootBean, TQAssocBean
...
Rather than imports, such that these are not possible name clashes with
beans of the exact same name.
2023-11-28 21:51:07 +13:00
Rob Bygrave and GitHub
29cd1a143d
Merge pull request #3277 from ebean-orm/feature/bump-datasource2
...
Bump ebean-datasource to 8.11 with support for Driver by class
2023-11-23 23:34:23 +13:00
Rob Bygrave
6a19c6a0ce
Bump ebean-datasource to 8.11 with support for Driver by class
...
- Can specify explicit driver by class or instance
- Can use a DataSource as connection source
2023-11-23 23:31:29 +13:00
Rob Bygrave and GitHub
eaec515cc1
Merge pull request #3276 from ebean-orm/feature/skipCheckForReadOnly
...
skipDataSourceCheck() when using readOnlyDatabase
2023-11-23 23:27:21 +13:00
Rob Bygrave
97709d3493
skipDataSourceCheck() when using readOnlyDatabase
...
As we don't want the warning logged in this case:
DataSource [{0}] has autoCommit defaulting to true!
2023-11-23 23:23:53 +13:00
Rob Bygrave
87ad874621
Read the readOnlyDatabase property via loadSettings()
2023-11-23 23:15:58 +13:00
Rob Bygrave
dfe95f6fc0
Version 13.25.1
2023-11-22 17:50:09 +13:00
Rob Bygrave
05feccfeb6
Bump ebean-agent
2023-11-22 17:46:54 +13:00
Rob Bygrave and GitHub
196cb09c66
Merge pull request #3274 from ebean-orm/feature/3269
...
#3268 - @DbComment on @ManyToOne fields are ignored (ddl-generator)
2023-11-21 23:54:26 +13:00
Rob Bygrave
589e198301
#3268 - @DbComment on @ManyToOne fields are ignored (ddl-generator)
2023-11-21 23:53:29 +13:00
Rob Bygrave and GitHub
b2b81677e8
Merge pull request #3273 from ebean-orm/feature/3269
...
#3269 - @JoinColumns set ForeignKey is none in ddl , but is not work
2023-11-21 23:42:06 +13:00
Rob Bygrave
f032aad22e
#3269 - @JoinColumns set ForeignKey is none in ddl , but is not work
2023-11-21 23:40:21 +13:00
Rob Bygrave
c48e5428c5
#3265 Fix for Update Query logging to trim large values in bind log
2023-11-21 22:32:35 +13:00
Rob Bygrave
cbca940611
Merge branch 'FOCONIS-findsingleattribute-beanfindcontroller'
2023-11-21 22:05:12 +13:00
Rob Bygrave
0da3772ae9
#3270 Fix for use with BeanFindController and attribute queries
...
The existence of a BeanFindController should not break the use of
single attribute queries + still allow auto-tuning.
2023-11-21 22:04:47 +13:00
Rob Bygrave
496ef36b11
Merge branch 'findsingleattribute-beanfindcontroller' of github.com:FOCONIS/ebean into FOCONIS-findsingleattribute-beanfindcontroller
2023-11-21 21:40:09 +13:00
Rob Bygrave and GitHub
a4a2aba56f
Merge pull request #3272 from ebean-orm/feature/readOnlyDatabase
...
Refactor tidy internals of DbPrimary, DatabaseFactory, ContainerConfi…
2023-11-21 21:20:35 +13:00
Rob Bygrave
803f1d8642
Refactor tidy internals of DbPrimary, DatabaseFactory, ContainerConfig, ClusterManager
2023-11-20 22:18:53 +13:00
Rob Bygrave and GitHub
ff1c73e20d
Merge pull request #3266 from ebean-orm/feature/readOnlyDatabase
...
Add read only database configuration/builder option
2023-11-17 14:10:51 +13:00
Noemi Praml
7afd37cd98
Failing Tests with CustomerFindController
2023-11-14 17:05:42 +01:00
Rob Bygrave
24bb364d40
Add read only database configuration/builder option
...
When using DatabaseBuilder.readOnlyDatabase(true) then
ebean will:
- Set the DataSourceBuilder to use autoCommit=true and readOnly=true
- Use the same DataSource instance for both dataSource and readOnlyDataSource
This is to simplify the setup/configuration for creating a Database that
will only have read-only use.
Note that readOnly=true is a JDBC hint and for example H2 database effectively
ignores that hint where as Postgres will enforce the read-only true nature.
2023-11-13 23:12:05 +13:00
Rob Bygrave
5d54a238bd
Bump ebean-agent to 13.25.0
2023-11-06 20:09:35 +13:00
Rob Bygrave
b50ce5fc3f
Version 13.25.0
2023-11-06 20:08:00 +13:00
Rob Bygrave
624e92840c
Adjust "for testing purposes" log messages
2023-11-06 12:55:22 +13:00
Rob Bygrave
b03adc412c
Adjust "for testing purposes" log messages
2023-11-06 12:52:35 +13:00
Rob Bygrave and GitHub
e794f5e916
Merge pull request #3264 from ebean-orm/feature/DatabaseBuilder_Settings
...
Fix to return DataSourceBuilder.Settings for getDataSourceConfig() an…
2023-11-06 12:50:37 +13:00
Rob Bygrave
a2551ce718
Bump ebean-datasource to 8.9
2023-11-06 12:50:14 +13:00
Rob Bygrave
5b0a3607f6
Fix to return DataSourceBuilder.Settings for getDataSourceConfig() and getReadOnlyDataSourceConfig()
...
That is, existing code using DataSourceConfig has access to the getter
methods of DataSourceConfig. The DataSourceBuilder interface only has
the setter methods and DataSourceBuilder.Settings has both getters and
setter methods.
That is, the refactor to extract the DataSourceBuilder interface also
split off the getter methods to the DataSourceBuilder.Settings interface
(because most of the time when using the builder we only need the
setter methods and effectively hiding the getter methods behind the settings()
is useful to simplify the API for users).
2023-11-06 12:14:27 +13:00
Rob Bygrave
bcf7bd17be
Version 13.14.0-jakarta
2023-11-05 22:21:20 +13:00
Rob Bygrave and GitHub
102d8d5979
Merge pull request #3263 from ebean-orm/feature/DatabaseBuilder-take-2
...
DatabaseBuilder take 2
2023-11-05 22:11:26 +13:00
Rob Bygrave
3edc232003
Update test BeanDescriptor_registerTest with DatabaseBuilder use
2023-11-05 22:03:25 +13:00
Rob Bygrave
043dc5c51f
Add setters without the set prefix to DatabaseBuilder with deprecation
...
So add `name(String name)` as preferred to `setName(String name)` etc
2023-11-05 22:01:02 +13:00
Rob Bygrave
e2d666df35
Use fluid setters for DatabaseConfig and DatabaseBuilder
2023-11-04 13:05:22 +13:00
Rob Bygrave
314e0a14b8
Move the internal serviceObjectKey() methods back into DatabaseConfig
...
They were incorrectly extracted to the interface as default methods
2023-11-03 23:00:29 +13:00
Rob Bygrave
1f9cf1e4b7
Split DatabaseBuilder interface separating the setters n getters adding DatabaseBuilder.Settings
...
So DatabaseBuilder.Settings has all the getters for code looking to read
the configuration that has been set. So DatabaseBuilder now just has the
setter methods.
Use DatabaseBuilder.settings() to access the settings and read the config
that has been set.
2023-11-03 22:58:11 +13:00
Rob Bygrave
12029ed06e
Refactor extract interface DatabaseBuilder from DatabaseConfig
...
First step in supporting the builder pattern for creating Database
2023-11-03 21:17:55 +13:00
Rob Bygrave and GitHub
89741b9312
Merge pull request #3262 from ebean-orm/feature/improve-javadoc-deprecated
...
Improve the javadoc for deprecated methods (to assist IDE quick-fix actions)
2023-11-03 20:05:41 +13:00
Rob Bygrave
ae962c2e08
Improve the javadoc for deprecated methods (to assist IDE quick-fix actions)
2023-11-03 20:04:25 +13:00
Rob Bygrave and GitHub
4e3501972a
Merge pull request #3260 from ebean-orm/feature/bump-migration2
...
Bump ebean-migration to 13.11.1 (with fastMode option and index file support)
2023-11-03 19:52:00 +13:00
Rob Bygrave
a65ba41850
Bump ebean-migration to 13.11.1 (with fastMode option and index file support)
2023-11-03 18:33:02 +13:00
Rob Bygrave
3b11c1cb6b
Merge branch 'master' of github.com:ebean-orm/ebean
2023-11-03 18:31:31 +13:00
Rob Bygrave
41185eeb5c
Bump ebean-datasource to 8.8 with DataSourceBuilder
...
First step in migrating the ebean-datasource API to use builder pattern.
DataSourceConfig (concrete type) migrating to DataSourceBuilder (interface).
A followup step will deprecate the use of DataSourceConfig.
2023-11-03 18:31:11 +13:00
Rob Bygrave and GitHub
e97ff54ab2
Merge pull request #3259 from ebean-orm/feature/loadMode_safer
...
Change loadMode to be 'safer' (for Grafana etc). e.g. change "(+lazy) " to "__lazy"
2023-11-02 09:00:38 +13:00
robin.bygrave
97fae09c52
Tidy SpiQuery.setProfilePath() internal implementation
2023-11-01 15:48:27 +13:00
robin.bygrave
8b0f58b3c2
Change loadMode to be 'safer' (for Grafana etc). e.g. change "(+lazy)" to "__lazy"
...
The loadMode ends up as a suffix to some query metrics.
For example "foo.findIt_baz(+lazy)", and the (+lazy) part isn't safe/friendly to tools
like Grafana. So change to instead of (+lazy) use __lazy.
2023-11-01 15:20:18 +13:00