Jonas Pöhler (JPo)
dd6a473008
ADD: Test and possible fix for (C)LOBs being handed out of connnection-context
...
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
2021-03-22 15:59:59 +01: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
ebean-parent-12.8.0
2021-03-18 22:23:34 +13:00
rob bygrave
ce1d2803ce
Bump test wait time for redis
2021-03-18 22:18: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
Rob Bygrave and GitHub
bd1060ff28
Merge pull request #2198 from ebean-orm/sebastian-mrozek-feature/json-assert-compare-arrays
...
Feature/json assert compare arrays
2021-03-16 22:06:28 +13:00
Robin Bygrave
c9968a9662
Change JsonAssertContains array matching to match on size
2021-03-16 22:03:12 +13:00
Robin Bygrave
e3001e8bdd
Fix JsonAssertContains testContainsFails with missing parts of JSON
...
Just add missing parts of test/resources/original.json and original-subset-modified.json
2021-03-16 09:30:54 +13:00
Robin Bygrave
82bb2b4567
Merge branch 'feature/json-assert-compare-arrays' of https://github.com/sebastian-mrozek/ebean into sebastian-mrozek-feature/json-assert-compare-arrays
2021-03-16 09:14:06 +13:00
Robin Bygrave
f483002e39
#2197 - [ebean-redis] - Bump jedis dependency to 3.5.2 (from 3.4.0
2021-03-16 09:13:01 +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
sebastian-mrozek
899fdca995
Improve assertions in case json compare does not fail as expected
...
Remove sys out print.
2021-03-15 13:04:05 +13:00
sebastian-mrozek
4731ee034e
Handle searching for matching elements in an array
...
Add unit tests.
Refactor internals to allow reusing assertion method for finding matches in an array.
2021-03-15 12:51:36 +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
sebastian-mrozek
ef3980a3ee
Add test resources
2021-03-11 13:47:46 +13:00
sebastian-mrozek
2a1c170aa4
Add test for shuffled array comparison
2021-03-11 13:44:59 +13:00
Rob Bygrave and GitHub
d65e769dd7
Merge pull request #2191 from ebean-orm/feature/findEachBatch
...
ENH: Add Query findEach() with batch consumer
2021-03-11 13:34:58 +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
rob bygrave
98aee9ca62
Merge branch 'master' of github.com:ebean-orm/ebean
2021-03-09 20:13:47 +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
Rob Bygrave and GitHub
632f43016e
Merge pull request #2183 from bkempe/findNative_fetch_inconsistent
...
added tests for findNative query with fetch() and fetchQuery()
2021-03-02 15:31:38 +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
Rob Bygrave and GitHub
dcf5e7a15c
Merge pull request #2185 from bkempe/querybeans_is_in_subquery
...
ENH: add in(subQuery) support for query beans
2021-03-02 14:10:53 +13:00
Ben Kempe
af4f70e3a7
add in(subQuery) support for query beans
2021-03-01 13:21:05 +01:00
Ben Kempe
79dde23ec6
added tests for findNative fetches
2021-03-01 12:16:22 +01: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
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
6315edfc21
#2177 - findNative not mapping bean when schema specified in entity mapping
2021-03-01 22:08:17 +13:00
Robin Bygrave
464f48d717
Bump test kotlin-querybean-generator version
2021-03-01 21:34:17 +13:00
Robin Bygrave
eacfaf3403
No effective change - refactor tidy SqlTreeNodeBean
2021-03-01 21:19:25 +13:00
Rob Bygrave and GitHub
36d8028045
Merge pull request #2180 from ebean-orm/feature/refactor-SqlTreeNodeBean
...
Improved fix for #2179 - Fetch on nested one-to-many collectio…
2021-03-01 20:32:08 +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
5a73c85e6e
Refactor internals - SqlTreeNodeBean add derived readIdNormal + private methods
...
This is no effective change
2021-03-01 18:36:49 +13:00
Robin Bygrave
68138bc009
Refactor internals no effective change - reorder methods of SqlTreeNodeManyRoot
2021-03-01 17:45:52 +13:00
Robin Bygrave
8c7df3212a
Refactor internals add SqlTreeRoot as follow up to #2179
...
Adds SqlTreeRoot interface to make it more explicit that SqlTreeNodeRoot is the only valid top level node in the sql tree (and as such has the root level load() method)
2021-03-01 17:44:13 +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 Bygrave
640824ae31
Merge branch 'bkempe-nested_fetch_duplicates'
2021-03-01 13:39:16 +13:00
Robin Bygrave
6acf93c978
#2178 - Fix for duplicate instances added to collection for nested one-to-many fetch
...
This is an initial fix for this case.
2021-03-01 13:38:40 +13:00