Rob Bygrave
1f9e652ea9
Version 16.0.0
2025-08-25 08:21:49 +12:00
Rob Bygrave
d2693c3ff2
Version 16.0.0-RC4
2025-08-05 23:15:20 +12:00
Rob Bygrave
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
9b520bc176
Bump avaje-config to 4.1
2025-07-11 23:22:16 +12:00
Rob Bygrave
e82c1a4140
Version 16.0.0-rc3
2025-05-26 21:00:32 +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
f4fd4f4b09
Version 16.0.0-RC2
2025-04-30 00:01:52 +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
bd0a3c2303
Increase default lazyLoadBatchSize from 10 to 100
2025-04-04 21:14:47 +13:00
Rob Bygrave
d9a45245f4
Version 16.0.0-beta1
2025-04-03 19:35:14 +13:00
Rob Bygrave
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
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
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
e48b327967
Tidy QueryCacheEntry, final class and use accessors
2025-03-20 23:57:56 +13:00
Rob Bygrave
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
929604e33d
Merge pull request #3593 from LeComptoirDesPharmacies/feature/findFutureMap
...
Add feature findFutureMap
2025-03-19 22:12:06 +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
1afe42f4c6
Merge branch 'master' into feature/improved-readOnly-immutable
2025-03-18 22:43:00 +13:00
Thomas
a35db6bdee
Add feature findFutureMap
2025-03-18 09:19:15 +01: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
798d01abd1
LazyInitialisationException, plus javadoc
2025-03-16 21:12:25 +13:00
Rob Bygrave
c13e09257c
Version 14.10.0
2025-03-11 21:26:00 +13:00
Rob Bygrave
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
Roland Praml
7643dc9b22
Rollback/Commit raw transactions before close
2025-02-27 10:56:41 +01:00
Rob Bygrave
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
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
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
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
578a041c9e
Version 14.9.0
2025-02-12 19:56:14 +13:00
Josiah Noel and Rob Bygrave
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
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
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
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
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
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
ad18b6573c
Version 14.8.2
2025-02-09 22:07:28 +13:00
Rob Bygrave
2c18b4fe97
Version 14.8.1
2024-12-20 15:34:07 +13: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