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
c4484c758e
[maven-release-plugin] prepare for next development iteration
2021-08-06 14:56:15 +12:00
rbygrave
ee615836ba
[maven-release-plugin] prepare release ebean-parent-12.11.0
ebean-parent-12.11.0
2021-08-06 14:56:09 +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
Rob Bygrave and GitHub
4787303160
Merge pull request #2289 from ebean-orm/feature/meta-api
...
Refactor io.ebean.meta API, method rename with deprecation
2021-08-06 13:17:08 +12:00
rbygrave
801d419f51
Refactor io.ebean.meta API, method rename with deprecation
2021-08-06 13:14:29 +12:00
Rob Bygrave and GitHub
3579557200
Merge pull request #2288 from ebean-orm/feature/sql-hash
...
Change query metric hash from MD5 of sql + name + loc to Checksum of sql (+ rename to sqlHash)
2021-08-06 12:52:42 +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
f34e0f5f2b
#2287 - ebean-migration: For multiple platforms automatically run the correct migrations
2021-08-05 23:03:02 +12:00
rbygrave
d98a31fa6b
Bump to 12.11.0-SNAPSHOT
2021-08-05 16:53:51 +12:00
rbygrave
9a82dbb3e6
Bump parent to java8-oss 3.2 with GPG maven plugin active only with "release" profile
...
The GPG maven plugin is now only active with the "release" profile
use -P release when we want to release with GPG signing
2021-08-05 13:17:32 +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
a06f7bea41
Tidy javadoc for MutableValueInfo
2021-08-05 12:55:42 +12:00
rbygrave
db34afe867
#2284 - ENH: ddl-generator - add optional generation of idx_<platform>.migrations file
2021-08-03 00:03:02 +12:00
rbygrave
589ee7a5ea
#2284 - ENH: ddl-generator - add optional generation of idx_<platform>.migrations file
2021-08-02 23:59:49 +12:00
rbygrave
4ba26ee7b7
#2283 - ddl-generator - Refactor tidy DefaultDbMigration etc
2021-08-02 20:49:30 +12:00
rbygrave
71223895ac
#2283 - ddl-generator - Refactor tidy whitespace etc
2021-08-02 20:38:05 +12:00
rbygrave
928b90122f
#2283 - ddl-generator - Add DbMigration.addPlatform(Platform) with default sub-directory based on Platform
2021-08-02 20:15:51 +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
rbygrave
03004452ac
ebean.mf set back to synthetic: true
2021-07-30 14:53:32 +12:00
rbygrave
a470877017
Update kotlin-querybean-generator pom to make kotlin in IntelliJ happy
2021-07-30 14:52:49 +12:00
rbygrave
777d322222
#2279 - Remove _ebean_getMarker() from EntityBean interface - not actually required
2021-07-30 14:51:38 +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
822fb7325a
Due to mutableNext handling, with checkMutableProperties() even when known dirty go into beanProperty.checkMutable()
...
As per rPraml's PR and comment
Due to handling of mutableNext we need checkMutableProperties() to call into what is now beanProperty.checkMutable() even when we already know it's dirty.
2021-07-29 23:37:29 +12: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
c66d248e96
Add MutableValueNext to replace mutableContent such that hash compute is only done once
...
Adds MutableValueInfo.nextDirty() to replace the isEqualToJson() method. The next is computed once and stored. BindablePropertyJsonUpdate makes the .mutableNext(propertyIndex) call to move the next MutableValueInfo and return the json content.
2021-07-29 15:42:16 +12:00
rbygrave
0d8e7c852b
Change Checksum to use CRC32
2021-07-29 15:32:06 +12:00
rbygrave
991c6d6b5c
No effective change - tidy FactoryProperty
2021-07-29 13:30:15 +12:00
rbygrave
2bc5d3d325
Refactor rename MutableHash to MutableValueInfo (and subsequent rename on methods etc)
2021-07-29 13:20:30 +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
86483ff947
Use scalarType.format(value) removing scalarType.jsonMapper(value)
...
Remove scalarType.jsonMapper(value) as we can just use format(value) instead
2021-07-29 11:52:15 +12:00
rbygrave
92d7a7562f
Tidy only - no functional change to MutableHash and BeanPropertyJsonMapper
2021-07-29 11:49:01 +12:00
rbygrave
52fe3cf3c8
Change from MD5 to Checksum (Adler32) for json content dirty detection
2021-07-29 11:40:05 +12:00