rbygrave
a17683c549
#2307 - Tidy ShutdownManager DatabaseFactory only
2021-08-12 16:32:12 +12:00
rbygrave
eeacad0fb9
#2307 - ENH: Add DatabaseFactory.disableShutdownHook() ... [ alias for ShutdownManager.deregisterShutdownHook() ]
2021-08-12 14:36:14 +12:00
Roland Praml
2d24020202
Added / enhanced test case
2021-08-11 09:32:21 +02:00
Roland Praml
1a2aba3f56
Distinguish between exists and in subquery
2021-08-11 08:54:40 +02:00
Roland Praml
12b8b4b955
Merge remote-tracking branch 'upstream/master' into subquery-with-fetch-path
2021-08-11 07:42:11 +02:00
Rob Bygrave and GitHub
18e49cc1ce
Merge pull request #2300 from FOCONIS/exists-with-dynamic
...
Enables select + exists for dynamic formula properties
2021-08-11 14:01:46 +12:00
Rob Bygrave and GitHub
1ce4b1a994
Merge pull request #2299 from FOCONIS/push-pops-in-wrong-order
...
PushJson/PopJson did not work correctly, if null beans were involved
2021-08-11 13:48:00 +12:00
rbygrave
144a3b54bb
Refactor rename method queryBindHash() to queryBindKey()
2021-08-11 13:25:04 +12:00
rbygrave
ec7c7048db
Refactor rename BindHash to BindValuesKey
2021-08-11 13:19:44 +12:00
rbygrave
fd2e542c0b
Change BindHash from interface to implementation, Delete unused server persist BindValues
2021-08-11 12:43:58 +12:00
Roland Praml
60dfaab22c
Enables select + exists for dynamic formula properties
2021-08-10 15:29:10 +02:00
Roland Praml
75fa7cb7fd
PushJson/PopJson did not work correctly, if null beans were involved
2021-08-10 13:24:13 +02:00
rbygrave
e47b1737a8
Add HashCodeBindHashTest
2021-08-10 22:28:31 +12:00
rbygrave
cd6df2be39
Merge branch 'md5-for-querybindhash' of https://github.com/FOCONIS/ebean into FOCONIS-md5-for-querybindhash
2021-08-10 21:18:43 +12:00
Roland Praml
c8ae3c5ef6
FIX: Changelog-oldValue did not work for Json mutable properties
2021-08-10 09:30:25 +02:00
Roland Praml
e18c190905
Fix the test to run with java 8
2021-08-09 09:46:49 +02:00
Roland Praml
181dc73d39
Use MD5 for QueryBindHash
2021-08-09 09:19:53 +02:00
rbygrave
43213ead05
#2291 - ENH: Explicit option for fast-failing or not fast-failing (skipDataSourceCheck config option)
2021-08-09 15:10:59 +12:00
rbygrave
c610f95b2d
#2293 - Metric hash back to MD5 of sql + name + loc (minus location file and line source) ~= Revert of #2288
2021-08-09 14:05:10 +12:00
rbygrave
fea7de42d5
#2290 - Add MetaTimedMetric locationHash() which is a crc32 checksum of package + type + method (excludes line number)
2021-08-06 14:48:42 +12:00
rbygrave
801d419f51
Refactor io.ebean.meta API, method rename with deprecation
2021-08-06 13:14:29 +12:00
rbygrave
202d785710
Rename hash to sqlHash to better reflect what it is (CRC32 checksum of the sql)
2021-08-06 12:06:43 +12:00
rbygrave
7ca72a39b1
Change query metric hash from MD5 of sql + name + loc to Checksum of sql
2021-08-06 11:52:38 +12:00
rbygrave
a76442641b
Tidy test only - rename ServerConfigTest to DatabaseConfigTest and tidy
2021-08-05 13:14:00 +12:00
rbygrave
2043fdf7e1
#2274 Add DatabaseConfig jsonMutationDetection property setting the global default mode
2021-08-05 13:12:18 +12:00
rbygrave
d601a88d82
#2278 - Move null to empty json collections check to BeanPropertyJsonBasic
2021-07-30 23:53:28 +12:00
rbygrave
443e826f61
#2278 - Embedded bean override with DbJson property
2021-07-30 23:22:06 +12:00
rbygrave
2691221168
#2278 - Do not override empty json collections, when database value is null
2021-07-30 22:53:51 +12:00
rbygrave
e62bb3dc6b
Merge branch 'pr/bugfix/null_to_empty_json_collection' of https://github.com/FOCONIS/ebean into FOCONIS-pr/bugfix/null_to_empty_json_collection
2021-07-30 22:51:40 +12:00
Rob Bygrave and GitHub
604099429e
Merge pull request #2282 from ebean-orm/feature/json-mutable-collections
...
Treat json Jackson collections the same wrt mutation detection
2021-07-30 21:15:04 +12:00
Rob Bygrave and GitHub
11dc7f64ba
Merge pull request #2274 from ebean-orm/feature/json-dirty-detection-md5
...
Add support for JSON bean mutation detection via HASH and SOURCE of JSON string content
2021-07-30 21:11:42 +12:00
rbygrave
ceea705a76
Treat json Jackson collections the same wrt mutation detection
2021-07-30 20:20:03 +12:00
rbygrave
d9f7531e81
Tidy tests only - TestDbJson_Jackson3 TestJacksonPlainBean
2021-07-30 17:26:46 +12:00
rbygrave
7bd7640c63
Update test TestDbJson_Jackson3 showing HASH mode is used even on ModifyAwareType
2021-07-30 17:18:28 +12:00
rbygrave
ca1636ff9e
Fix when json/jackson bean inserted as null and not changed
...
Expectation is that it is not included in update (still null, no change)
2021-07-30 17:16:05 +12:00
rbygrave
ea741d0169
Update TestDbJson_Jackson3 with comments
2021-07-30 15:41:52 +12:00
rbygrave
c43e2e6956
Update TestDbJson_Jackson3
2021-07-30 15:34:54 +12:00
Jonas Pöhler
1f0ac1f1c1
ADD: Testcases for List and Map as well
2021-07-29 16:50:08 +02:00
Jonas Pöhler (JPo)
1fad6e910c
FIX: do not override empty (json) collections with null
...
Original: https://github.com/ebean-orm/ebean/commit/5551c35ec2496a9d62ab0afcaecbed739f17aa7c
Signed-off-by: Jonas Pöhler (JPo) <jonas.poehler@foconis.de >
2021-07-29 15:53:44 +02:00
rbygrave
20e0eb1021
Re-enable TestDbJson_Jackson3 via adding mutationDetection = HASH to beanList property
...
@DbJsonB(mutationDetection = HASH)
List<PlainBean> beanList;
2021-07-29 23:17:11 +12:00
rbygrave
20becf951d
Use MutationDetection replacing dirtyDetection and keepSource
...
Also adds NoMutationDetection to support NONE
2021-07-29 23:11:42 +12:00
rbygrave
5aa8557168
Update tests only - TestJacksonPlainBean with dirtyDetection = false property
2021-07-29 16:29:10 +12:00
rbygrave
0d8e7c852b
Change Checksum to use CRC32
2021-07-29 15:32:06 +12:00
rbygrave
5ad8e7ead4
Use new @DbJson dirtyDetection and keepSource attributes
...
- Bump ebean-annotation with new @DbJson dirtyDetection and keepSource attributes
- Get those to BeanPropertyJsonMapper to chose MutableHash implementation
- Modify MD5MutableHash to include check for isDirty()
- EBasicJsonList needs keepSource=true to pass that test with oldValue
2021-07-29 12:47:10 +12:00
rbygrave
8832bbc57f
No effective change - format EntityBeanIntercept only
...
Plus adjust timing on SqlQueryCancelTest
2021-07-29 12:43:37 +12:00
rbygrave
52fe3cf3c8
Change from MD5 to Checksum (Adler32) for json content dirty detection
2021-07-29 11:40:05 +12:00
rbygrave
d0270dbc6a
Temporarily disable TestDbJson_Jackson3 updateIncludesJsonColumn_when_list_loadedAndNotDirtyAware()
...
BeanState state = DB.getBeanState(found);
assertThat(state.getChangedProps()).containsExactlyInAnyOrder("beanList");
// this test fails, because we have a OmList instead of a GenericObject
// TODO: Can/Should we enhance the @DbJson/@DbJsonB annotations with a property "dirtyDetection"
2021-07-29 11:21:38 +12:00
Roland Praml
b497b8635b
some refactor and tidying
2021-07-28 17:22:29 +02:00
Roland Praml
5e595ec5f8
Proof of concept to support also bean change detection / changelog on mutable properties
2021-07-28 14:54:56 +02:00
rbygrave
49b86d07d3
Modify SqlBeanLoad to use readSet()
...
Note that we don't need to use readSetIntercept() now as there is no property change listener support
2021-07-28 22:48:29 +12:00