rbygrave
65b282a056
[maven-release-plugin] prepare for next development iteration
2021-04-09 17:49:16 +12:00
rbygrave
fc174c8988
[maven-release-plugin] prepare release ebean-parent-12.8.2
2021-04-09 17:49:07 +12:00
rbygrave
06802896ef
#2213 Bump agent for @Transactional(autoPersistUpdates = TxOption.ON)
2021-04-09 16:17:58 +12:00
Robin Bygrave
7f13ac9e5e
#2213 - Support autoPersistUpdates via TxScope
2021-04-08 23:15:49 +12:00
Rob Bygrave and GitHub
4a1374d22d
Merge pull request #2213 from ebean-orm/feature/transparentPersistence
...
Initial experimental support for autoPersistUpdates / "transparent persistence"
2021-04-08 23:03:05 +12:00
rbygrave
4ee8d647b7
No effective change - tidy test TestCustomerFinder
2021-04-07 23:28:53 +12:00
rbygrave
f7f383d8f3
No effective change - tidy tests TestRawSqlPositionedParams, TestRawSqlUnparsedQuery
2021-04-07 13:38:34 +12:00
rbygrave
562a3959b6
Merge branch 'master' of github.com:ebean-orm/ebean
2021-04-06 21:14:21 +12:00
rbygrave
bb1275f4f9
#2217 - Inserting an entity bean is skipped with a String @Id property and no other properties set
2021-04-06 21:13:59 +12:00
Rob Bygrave and GitHub
7fde6b9331
Merge pull request #2216 from ebean-orm/feature/2177-take2
...
#2177 - Fix where schema not provided by JDBC driver
2021-04-06 20:13:24 +12:00
rbygrave
3e97a4005a
Change TestCustomerFinder drop query plan threshold for tests only
2021-04-06 20:09:09 +12:00
rbygrave
f7c1845f0c
#2177 - Fix where schema not provided by JDBC driver
...
For @Table with schema, using findNative with a JDBC driver that does not provide the schema this fix matches by just using the table name.
2021-04-06 19:58:02 +12:00
Robin Bygrave
303039735f
Refactor rename transparentPersistence to autoPersistUpdates
2021-04-01 23:04:22 +13:00
Robin Bygrave
6bcf5c6881
Add DatabaseConfig.autoPersistUpdates for experimental "transparent persistence"
2021-04-01 22:57:34 +13:00
Robin Bygrave
0527f45f5a
For experimental "transparent persistence" - Inserts added to PC
...
When inserting bean with transparent persistence the beans are registered with the persistence context. This is done to support the cases where the beans are inserted, a flush() occurs, the inserted bean is mutated and now dirty - we want that to be detected and get an update
2021-04-01 16:59:03 +13:00
Robin Bygrave
ba397bbb0c
For experimental "transparent persistence" - Delete removes from PC early
...
When delete bean executed with transparent persistence, this marks the bean as removed from the persistence context early.
This avoids a "dirty" deleted bean from being seen as a "dirty" bean in the persistence context at flush() time.
2021-04-01 16:04:18 +13:00
Robin Bygrave
a617d58902
Initial experimental support for "transparent persistence"
...
In short, when this is turned on at flush() get any dirty beans held by the PersistenceContext and persist them (always update for these beans)
2021-04-01 14:47:54 +13:00
Robin Bygrave
f53d31aa2e
No functional change - final field for BatchControl
2021-04-01 12:22:45 +13:00
rob bygrave
09d772a5e5
[maven-release-plugin] prepare for next development iteration
2021-03-31 00:06:13 +13:00
rob bygrave
f7035eb228
[maven-release-plugin] prepare release ebean-parent-12.8.1
2021-03-31 00:06:04 +13:00
Robin Bygrave
a8bf27da55
#2211 - Improve query plan capture - Align config property names
...
collectQueryPlans -> queryPlanEnable
collectQueryPlanThresholdMicros -> queryPlanThresholdMicros
properties keys:
ebean.collectQueryPlans -> ebean.queryPlan.enable
ebean.collectQueryPlanThresholdMicros -> ebean.queryPlan.thresholdMicros
This then aligns all the queryPlan related properties together which is important in order to avoid confusion.
2021-03-30 23:44:30 +13:00
Robin Bygrave
ee8bb5ef75
#2211 - Improve query plan capture - Add default mechanism to log captured query plans
2021-03-30 23:19:21 +13:00
Robin Bygrave
bcfd9cab1d
#2210 - Improve query plan capture - bump threshold multiplier to 1.5
2021-03-30 16:05:42 +13:00
Robin Bygrave
2a5fd7f3a9
#2210 - Improve query plan capture - ability to change default threshold micros
2021-03-30 16:02:27 +13:00
Robin Bygrave
f8c37772d4
Tidy internals of DefaultServer with @Nonnull, <>, Collections.singleton(), remove unused queryBatchSize
2021-03-30 10:23:28 +13:00
Robin Bygrave
d988dbe69d
#2209 - Registering [default] as the default server but [default] is already registered as the default exception with hot-reload
2021-03-30 09:56:48 +13:00
rob bygrave
5cb9b9b237
#2208 - When using fetchCache() with a single id / findOne ... doesn't hit L2 cache
...
Plus #2207 ENH: Query beans add support for nested FetchGroup
2021-03-29 23:21:07 +13:00
rob bygrave
819d391495
Bump agent maven plugin to 12.8.1
2021-03-26 20:31:57 +13:00
Rob Bygrave and GitHub
e68adf53bc
Merge pull request #2204 from ebean-orm/feature/Honor-setLazyLoadBatchSize
...
Honor setLazyLoadBatchSize() when using FetchConfig.ofLazy() of unspecified size
2021-03-23 23:25:08 +13:00
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
Robin Bygrave
b5cef354ad
Refactor simplify LoadContext.getSecondaryQueriesMinBatchSize()
...
No functional change here. Just move the constant into DLoadContext.
2021-03-23 14:53:30 +13:00
Rob Bygrave
78965c1ac4
#2203 - Support use of Java Record type with @Entity, @Embeddable @IdClass
...
Allow java.lang.Record to be a root level parent for entity beans etc
2021-03-22 23:43:35 +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
e1f9d106f0
Additional tests for #2191 query findEach batch consumer
2021-03-18 17:12:21 +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
bb73c30bb7
#2199 - ScalarTypeWrapper doesn't handle "nullValue" correctly
...
Fix for - standard JPA AttributeConverter which doesn't have the getNullValue method, he/she can't convert null to a custom null object
AttributeConverterAdapter probes the AttributeConverter for the nullValue rather than just assuming it is null.
2021-03-18 16:14:46 +13:00
Robin Bygrave
2e16f05a70
#2199 - ScalarTypeWrapper doesn't handle "nullValue" correctly
...
Handles the case for ScalarTypeConverter with custom null value and binding the custom null value (via query parameter, CallableSql parameter etc)
2021-03-18 10:03:35 +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
c2a87a0c88
#2196 - SQLException:Column "T0.ID" must be in the GROUP BY list - when findCount with having clause
2021-03-15 22:43:25 +13:00
Robin Bygrave
733886c70b
#2195 - @Aggregation on OneToMany property not mapping to column properly
2021-03-15 22:03:14 +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 Bygrave
c86f965d36
#2187 - Improve error message thrown when @JoinTable @JoinColumn not satisfied.
...
Added " or a @JoinColumn needs an explicit referencedColumnName specified?";
2021-03-04 08:55:11 +13:00
Robin Bygrave
81e445e386
#2184 - Fix for findNative() with fetch() - convert fetch to fetchQuery with nativeSql
...
When using nativeSql (think of it as the "root query") we can't use "fetch joins" (FetchConfig.ofDefault()) as that means to prefer to use a SQL JOIN. In this nativeSql case we need to effectively automatically convert fetch() to fetchQuery()
2021-03-02 15:47:07 +13:00
Robin Bygrave
2cbbbc4419
Merge branch 'master' of https://github.com/ebean-orm/ebean
2021-03-02 15:32:40 +13:00
Robin Bygrave
fe62ad2ea2
#2184 - Initial refactor of DefaultOrmQuery to support 2184
...
- Add fetchInternal() and point fetchQuery() fetchLazy() and fetchCache() to it
- Move the fetch() methods so they are located together
2021-03-02 15:28:17 +13:00
Robin Bygrave
f416309863
No effective change - change DefaultOrmQuery methods to return Query<T> rather than DefaultOrmQuery<T>
...
This is no effective functional change but we do need to update the test OrmQueryPlanKeyTest to cast now.
2021-03-02 14:44:54 +13:00