Rob Bygrave
24b99d065a
Merge branch 'master' into ebean-15x
2024-02-19 22:43:41 +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 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
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 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
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
Noemi Praml
a4455ddbf2
Exclude test for DB2
2024-01-31 10:17:16 +01: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
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
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
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
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
robin.bygrave
7cd9e5ee03
Add support for LocalDate and Instant with DbArray
2023-12-06 14:54:30 +13:00
Rob Bygrave
720832122c
Follow up for #3248 - add betweenProperties on query bean
2023-12-05 23:32:16 +13:00
Rob Bygrave
dfe95f6fc0
Version 13.25.1
2023-11-22 17:50:09 +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
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
803f1d8642
Refactor tidy internals of DbPrimary, DatabaseFactory, ContainerConfig, ClusterManager
2023-11-20 22:18:53 +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
robin.bygrave
db7fbd5246
Merge branch 'master' into ebean-15x
2023-11-07 15:39:06 +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