Robin Bygrave
562d175de1
With FetchConfig.ofLazy() honor query.setLazyLoadBatchSize()
...
Use 0 for default lazy batch such that it honors a value set via query.setLazyLoadBatchSize()
2021-03-23 23:17:07 +13:00
rob bygrave
f7905c8e94
[maven-release-plugin] prepare for next development iteration
2021-03-18 22:30:17 +13:00
rob bygrave
7ab7b612f6
[maven-release-plugin] prepare release ebean-parent-12.8.0
2021-03-18 22:23:34 +13:00
rob bygrave
9b066e4eac
Bump version to 12.8.0-SNAPSHOT
2021-03-18 21:26:50 +13:00
Robin Bygrave
e40a539406
#2200 - ENH: Add DtoQuery findEach with batch consumer - findEach(int batchSize, Consumer<List<T>> consumer)
2021-03-18 17:02:41 +13:00
Robin Bygrave
1837c3443d
#2186 - Invalid generated table and column names of @ManyToMany relation with allQuotedIdentifiers=true
2021-03-17 21:02:59 +13:00
Robin Bygrave
e6faf9efd1
#2193 - Prevent registration of 2 default servers (2 Database that have defaultServer=true)
2021-03-11 23:21:44 +13:00
Rob Bygrave and GitHub
d75d1fce43
Change ModuleInfoLoader API and querybean-generator for named default database ( #2190 )
...
Currently we can not use @DbName with the entities of the default database. With this change the generated code that registers entity classes will support using @DbName with the default database.
2021-03-11 20:42:25 +13:00
Rob Bygrave
2bb5a85bd6
ENH: Add Query findEach() with batch consumer
...
This is a variation of findEach() that makes it easy to have a batch consumer processing a large result in batches. For example, process in batches of 50 beans.
Note that the last batch consumed/processed will often have less than the batch size.
2021-03-10 00:18:35 +13:00
robin
e4d0341e67
[maven-release-plugin] prepare for next development iteration
2021-03-01 23:45:15 +13:00
robin
907b182931
[maven-release-plugin] prepare release ebean-parent-12.7.2
2021-03-01 23:45:05 +13:00
robin
1a26cd717f
#2182 - Tidy javadoc - this may mean JDK 15 is required to generate javadoc
2021-03-01 23:40:06 +13:00
Robin Bygrave
7bfacb095b
#2181 - Oracle 9,10,11 rownum based limiting for SqlQuery and DtoQuery (rather than Oracle 12g row limiting)
2021-03-01 22:47:34 +13:00
Robin Bygrave
297c1d7abb
#2179 - Improved fix for (2179) Fetch on nested one-to-many collections results in duplicates
...
The improvement here is that SqlTreeNodeManyRoot uses load and isContextBean() so that it only checks if the collection already contains the detailBean if the detailBean was already in the persistence context (aka not newly loaded and added). The vast majority case is that detailBean is loaded fresh so for the common case we can skip the extra collection contains() check.
2021-03-01 20:27:50 +13:00
Robin Bygrave
5ebad53072
#2179 - Improve internals for outer join resulting in null many bean
...
Refactor improving the BeanList.internalAddWithCheck() for the null bean case
2021-03-01 14:00:40 +13:00
robin
b77c62e0db
[maven-release-plugin] prepare for next development iteration
2021-02-19 22:51:03 +13:00
robin
bbf46bb0ec
[maven-release-plugin] prepare release ebean-parent-12.7.1
2021-02-19 22:50:53 +13:00
Robin Bygrave
99d7a4e4b4
Tidy up pom jackson dependency versions (all optional dependencies) and bump to 2.12.1
2021-02-19 09:43:56 +13:00
Rob Bygrave and GitHub
b4ae721998
#2169 Refactor after #2170 tidy javax/jakarta validation annotation reading ( #2171 )
...
Introduces ReadValidationAnnotations with javax and jakarta implementations and moves the validation annotation reading there
2021-02-17 22:23:07 +13:00
André Camilo and GitHub
3bb4126e26
#2169 Support for jakarta.validation.constraints.NotNull and ( #2170 )
...
jakarta.validation.constraints.Size
2021-02-17 18:04:43 +13:00
rob bygrave
cc64ff5f10
Update javadoc with use of FetchConfig.ofQuery() etc
2021-02-14 11:37:19 +13:00
rob bygrave
4c16b85e85
#2166 - Remove deprecated forUpdate(lockType) methods - migrate to withLock(lockType, waitType)
2021-02-14 10:52:18 +13:00
Rob Bygrave and GitHub
d567872813
Deprecate the mutating methods of FetchConfig to migrate to the static factory methods ( #2164 )
...
e.g. migrate from -> to use
new FetchConfig().query() -> FetchConfig.ofQuery()
new FetchConfig().query(50) -> FetchConfig.ofQuery(50)
2021-02-13 14:50:02 +13:00
rob bygrave
4092ea307e
Bump pom version to 12.7.1-SNAPSHOT
2021-02-13 12:29:09 +13:00
rob bygrave
f1a48b182e
Refactor FetchConfig
2021-02-13 12:10:21 +13:00
rob bygrave
5b98d8d9c2
[maven-release-plugin] prepare for next development iteration
2021-02-12 22:27:45 +13:00
rob bygrave
8e59e72983
[maven-release-plugin] prepare release ebean-parent-12.6.7
2021-02-12 22:27:34 +13:00
rob bygrave
e0c3a92b60
Refactor FetchConfig
2021-02-12 21:01:57 +13:00
Robin Bygrave
d57657c209
#2127 - Fix for - Adding a new list of children to @OneToMany with orphanRemoval true does not delete existing orphans
...
Modifies EntityBeanIntercept preSetterMany to set the changed state on the many property and use this in SaveManyBeans to detect when the existing beans need orphan removal
2021-02-04 15:45:19 +13:00
rob bygrave
fca54dbbe3
[maven-release-plugin] prepare for next development iteration
2021-01-24 17:42:50 +13:00
rob bygrave
7ec5fe6a85
[maven-release-plugin] prepare release ebean-parent-12.6.6
2021-01-24 17:42:38 +13:00
rob bygrave
7e48f7c8eb
[maven-release-plugin] prepare for next development iteration
2021-01-05 18:02:21 +13:00
rob bygrave
501f8111fe
[maven-release-plugin] prepare release ebean-parent-12.6.5
2021-01-05 18:02:09 +13:00
rob bygrave
35a721039d
[maven-release-plugin] prepare for next development iteration
2020-12-23 20:25:47 +13:00
rob bygrave
98b4ac5029
[maven-release-plugin] prepare release ebean-parent-12.6.4
2020-12-23 20:25:22 +13:00
rob bygrave
400ae3cf4b
#2138 - Mark Transaction.flushBatch() as deprecated - migrate to flush();
2020-12-21 14:58:04 +13:00
rob bygrave
573e1b553c
[maven-release-plugin] prepare for next development iteration
2020-12-18 15:04:05 +13:00
rob bygrave
a674d0d696
[maven-release-plugin] prepare release ebean-parent-12.6.3
2020-12-18 15:03:53 +13:00
rob bygrave
48eac84930
#2128 - Bump avaje-config dependency to 1.3 - Fix for - Repeated calls to Config.get() with no value, expect to return passed default value
2020-12-14 09:31:08 +13:00
rob bygrave
948619a125
[maven-release-plugin] prepare for next development iteration
2020-12-09 13:11:19 +13:00
rob bygrave
0cd0741f18
[maven-release-plugin] prepare release ebean-parent-12.6.2
2020-12-09 13:11:07 +13:00
rob bygrave
7389a8b344
#2124 - ENH: Add name() attribute to @DbArray, @DbJson, @DbJsonB, @DbMap
2020-12-07 22:46:04 +13:00
rob bygrave
d68f477e8e
#2120 - DbEnumValue without database constraint
2020-12-07 21:53:03 +13:00
rob bygrave
dbe273bb56
#2123 - Modify BackgroundExecutor API - add scheduleWithFixedDelay() and mark executePeriodically() as deprecated
2020-12-07 17:14:03 +13:00
rob bygrave
9d706056c6
No functional change, replace new ReentrantLock(false) with new ReentrantLock()
2020-12-04 21:18:55 +13:00
Rob Bygrave and GitHub
786444a6b9
Refactor BackgroundExecutor add submit() methods returning Future ( #2121 )
...
- Adds submit() methods that return Future
- Refactor internals to use DaemonScheduleThreadPool
- Delete the now unused DaemonExecutorService
- Tidy internals using wrapMDC() methods
2020-12-03 13:16:51 +13:00
Rob Bygrave and GitHub
c66875449b
Add Query.withLock(LockType) and withLock(LockType, LockWait) ( #2116 )
...
Add Query.withLock(LockType) and withLock(LockType, LockWait)
2020-12-01 21:31:53 +13:00
rob bygrave
e7b13cf2d9
[maven-release-plugin] prepare for next development iteration
2020-11-25 22:48:17 +13:00
rob bygrave
04cd520719
[maven-release-plugin] prepare release ebean-parent-12.6.1
2020-11-25 22:48:05 +13:00
rob bygrave
838af0478e
#2113 - Refactor rename Query.LockType enum names
2020-11-25 22:32:59 +13:00