Rob Bygrave
6b2cdc14aa
Version 14.0.0
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
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
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