robin
de439e7695
Improve Refactor internals OrmQueryProperties invert isEmpty()
...
Rename to hasProperties() and improve javadoc
2021-02-16 23:20:44 +13:00
robin
e5ec72df5c
Refactor internals OrmQueryProperties invert isEmpty() -> nonEmpty()
2021-02-16 20:37:58 +13:00
Rob Bygrave and GitHub
98a89156bf
Refactor query internals to reduce property parsing for partial select and fetch ( #2167 )
...
* Update test only - update TestBasicClobNoVer to use DB and AssertJ
* Refactor OrmQueryProperties internals to reduce raw property parsing
- Remove String properties
- Reduces parsing of properties via fetchProperties() selectProperties() methods
* No effective change - tidy pom.xml for ebean-querybean
* Refactor query internals adding fetchProperties() selectProperties()
- Adds SpiQueryFetch
- Used by query beans with Set<String> properties passed (effectively skipping any parsing)
2021-02-16 17:51:47 +13:00
rob bygrave
ab87174e5b
#2163 - Fix OrmQueryProperties when FetchConfig null
2021-02-14 11:30:24 +13:00
Rob Bygrave and GitHub
a6fdc42934
Remove support for "query hints" like +query(50) ( #2163 )
...
* Remove support for "query hints" like +query(50)
* Remove unused readOnly from OrmQueryProperties
* OrmQueryProperties cache as final field
2021-02-14 11:21:10 +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
9e3d6c6a08
#2165 - Joda LocalDate West of UTC converts incorrectly (Fix: change from epoc millis conversion to y/m/d conversion)
2021-02-14 10:28:55 +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
f1a48b182e
Refactor FetchConfig
2021-02-13 12:10:21 +13:00
Rob Bygrave and GitHub
8ac5467856
Improve internal calculation of orm query plan hash key (Require use of inline hints like +query(50) to be comma delimited with properties) ( #2159 )
...
* WIP Tidy DefaultOrmQuery planDescription()
* WIP Tidy DefaultOrmQuery planDescription()
* Refactor OrmQueryPropertiesParser with hints requiring comma delimiting (previously didn't)
* Refactor OrmQueryPropertiesParser (reuse inputProperties) and DRawSqlColumnsParser (to return Set)
* Refactor OrmQueryPropertiesParser - remove JunkMain
* Refactor OrmQueryDetail, OrmQueryProperties - properties
2021-02-13 11:58:00 +13:00
rob bygrave
b56d68dac7
#2157 - ManyToMany mapping to itself results in broken generated SQL DDL when not defining @JoinTable.
2021-02-12 22:17:04 +13:00
rob bygrave
e0c3a92b60
Refactor FetchConfig
2021-02-12 21:01:57 +13:00
Rob Bygrave and GitHub
d3a09b93c0
#2156 - Using @OneToOne(targetEntity...) with Interface field results in BeanNotRegisteredException ( #2160 )
2021-02-12 16:30:28 +13:00
Robin Bygrave
ac1dd4cbab
#2158 Refactor to use try with resources with Connection for platform selection via jdbc metaData
2021-02-11 17:28:05 +13:00
Robin Bygrave
bc33e05906
#2158 - Oracle - automatic platform selection doesn't select older Oracle11Platform via jdbc metadata major version
2021-02-11 17:20:28 +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 and GitHub
0be98d7989
Fix to only cancel query once ( #2152 )
...
Change DefaultOrmQuery.cancel() to call underlying jdbc cancel once
- Refactor tidy already cancelled check (pre query execution)
- Remove unnecessary extra transaction.end() call on future query execution (as already handled by CallableQueryList etc)
2021-02-03 14:51:42 +13:00
Robin Bygrave
e38059f52c
#2149 - Fix for ADD: jdbc batch flush doesnt execute sql statements created in lifecycle methods (e.g. beans saved in PostInsert etc)
...
Note that the foconis fork has a onPersist extension which is removed from the test.
2021-01-22 14:00:48 +13:00
Robin Bygrave
b44091ff3a
#2147 Fix for ADD: multiple to many outer joins cause wrong count in distinct count…
...
Copy of Rolands fix in FOCONIS branch. This also brings over some of the extra tests found there.
Note that the SQL is slightly different from the FOCONIS branch in that there is additional foreign key columns included in the sub-query select clause.
2021-01-21 16:56:42 +13:00
rob bygrave
5eac31283d
#2148 - PersistenceException: No ScalarType registered for class java.util.LinkedHashMap
2021-01-20 23:31:45 +13:00
rob bygrave
9dd28d8879
#2146 - Fix for Cache with lazy load doesnt work
...
When the list is empty() it has already been loaded and loading should skip the l2 cache
2021-01-20 21:10:49 +13:00
rob bygrave
9ccd1b1b27
No effective change - tidy whitespace in SqlTreeBuilder and SqlTreeNodeExtraJoin
2021-01-20 00:10:09 +13:00
rob bygrave
0c1657fef5
#2145 - SoftDelete predicate missing on join to ManyToOne supporting predicate expression
2021-01-20 00:00:27 +13:00
rob bygrave
7f68b9d846
No effective change - tidy whitespace in BeanDescriptorCacheHelp
2021-01-19 22:48:29 +13:00
rob bygrave
ade36582a0
#2144 - Fix for NPE via Wrong beans in PersistContext avoid proper lazy load
2021-01-19 22:37:15 +13:00
Roland Praml
a4b8be61e3
ADD: some suggestions/debug hints
2021-01-11 11:50:25 +01:00
rob bygrave
d8f4503d98
#2141 - Fix for failing test, revert of fix for #2127
2021-01-05 17:56:55 +13:00
rob bygrave
583e10f5c6
#2139 - Fix for - Failing testcase that shows wipe of all children on save (related to #2127 )
2020-12-22 15:49:37 +13:00
rob bygrave
6b2c48d4f6
#2135 - ebean doest not support Spring @Transactional(propagation = Propagation.REQUIRES_NEW)
2020-12-21 16:40:19 +13:00
rob bygrave
400ae3cf4b
#2138 - Mark Transaction.flushBatch() as deprecated - migrate to flush();
2020-12-21 14:58:04 +13:00
rob bygrave
f22a322104
No effective change - Refactor tidy AbstractSqlQueryRequest after #2137
...
- Rename trans to transaction
- Tidy whitespace
2020-12-21 14:18:13 +13:00
rob bygrave
e98ff952bf
#2137 - Expected Transaction flush on SqlQuery and DtoQuery not occurring
2020-12-21 14:11:28 +13:00
rob bygrave
1bdc6d8f7f
#2134 - Modify ChangeLog to send the last set of changes Pre Commit (rather than post commit). Expose this for spring transactions.
2020-12-18 14:54:44 +13:00
rob bygrave
e9081a176f
#2133 - Spring transactions not getting ChangeLog changeSet as part of postCommit() processing
2020-12-18 14:14:43 +13:00
Rob Bygrave and GitHub
55324653a5
#2127 - Adding a new list of children to @OneToMany with orphanRemoval true does not delete existing orphans ( #2131 )
2020-12-16 15:36:44 +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
cb0100f02a
Refactor tidy BeanDescriptor, no effective change
2020-12-04 21:11:02 +13:00
rob bygrave
9c6dd0989a
Refactor tidy BeanDescriptorManager whitespace and raw types
2020-12-04 21:03:08 +13:00
rob bygrave
365b7c4600
#2122 - Metrics for ElementCollection query not included in reporting (via MetaInfoManager)
2020-12-04 20:41:40 +13:00
rob bygrave
ed2455f460
#2121 - Refactor internals move DefaultBackgroundExecutor etc
2020-12-03 15:47:14 +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
838af0478e
#2113 - Refactor rename Query.LockType enum names
2020-11-25 22:32:59 +13:00
rob bygrave
9064e96b90
#2113 - Refactor rename Query.ForUpdate to Query.LockWait
...
Slightly improve the name of the enum. Note that although this is on public Query it's only internally used.
2020-11-25 22:23:17 +13:00
Rob Bygrave and GitHub
8e91268979
#2110 Part2 - addBatch() does not auto flush ( #2115 )
2020-11-25 22:18:05 +13:00
Rob Bygrave and GitHub
9846ebd65d
Merge pull request #2112 from ebean-orm/FOCONIS-bug-ebean/sql_update_batch_flush
...
2110 - Fix and test for executeBatch() on SqlUpdate
2020-11-25 20:40:02 +13:00
rob bygrave
b568e2efc7
#2114 - Fix PreparedStatement leak when findEach() with invalid SQL
2020-11-25 20:19:20 +13:00