rbygrave
3e190b34f5
Merge branch 'master' of github.com:ebean-orm/ebean
2021-08-15 13:48:43 +12:00
rbygrave
e059ad9172
Merge branch 'FOCONIS-mutationdetection-source-special-json-types'
2021-08-15 13:48:27 +12:00
rbygrave
1297324fa9
Fix where using JDK 10 Reader.transferTo() method plus add final to methods and classes
2021-08-15 13:47:46 +12:00
rbygrave
e2b7434d98
Merge branch 'mutationdetection-source-special-json-types' of https://github.com/FOCONIS/ebean into FOCONIS-mutationdetection-source-special-json-types
2021-08-15 12:06:12 +12:00
rbygrave
ada8df5755
Improve startup logging messages
2021-08-15 12:05:30 +12:00
Roland Praml
6b263919d5
handle also JsonNode
2021-08-13 11:19:24 +02:00
Roland Praml
965c1e803f
FIX: mutationDetection = SOURCE works also for special json types
2021-08-13 10:47:14 +02:00
Rob Bygrave
a13bc481b8
Merge pull request #2306 from FOCONIS/pr/enh/softreference_in_cache
...
Use SoftReferences in Cache
2021-08-13 09:35:38 +12:00
rbygrave
fc7379aabc
Tidy internals - server.persist.dml package for whitespace and typos
2021-08-13 09:18:31 +12:00
rbygrave
c51140b59a
Add DefaultServer.toString() and tidy DbOffline remove unnecessary log message
2021-08-12 13:01:07 +12:00
Jonas Pöhler
f1817a0dbb
Merge remote-tracking branch 'ebean/master' into pr/enh/softreference_in_cache
2021-08-11 15:26:42 +02:00
Jonas Pöhler
5b05510bb9
Merge remote-tracking branch 'ebean/master' into pr/enh/softreference_in_cache
2021-08-11 14:08:55 +02:00
rbygrave
b676476cd2
Add SpiQuery.Type.defaultSelect() for ATTRIBUTE and sub-query type queries
2021-08-11 20:51:46 +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
rbygrave
c267366578
Refactor tidy internals - aList -> expr in for loops etc. No functional change.
2021-08-11 15:32:54 +12:00
Rob Bygrave
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
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
rbygrave
11e8e3696f
BindParams does not need encryptionKey in equals/hashCode
2021-08-11 12:24:36 +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
e1ad210bb0
Tidy JunctionExpression
2021-08-10 22:18:33 +12:00
rbygrave
ac3edbedf4
Remove MdBindHash, tidy DefaultOrmQuery
2021-08-10 22:07:48 +12:00
rbygrave
2dc48cf08d
ArrayContainsExpression equals() to use enhanced for loop
2021-08-10 22:00:46 +12:00
rbygrave
ede1ad0a4c
Fix BindParams equals() and hashCode()
2021-08-10 21:58:41 +12:00
rbygrave
3e8f76cd6d
Update HashCodeBindHash to use values for equals()
2021-08-10 21:49:31 +12:00
Roland Praml
181dc73d39
Use MD5 for QueryBindHash
2021-08-09 09:19:53 +02:00
rbygrave
8c101fd0a4
#2268 - Feature request/question: Query execution time for debugging
2021-08-09 16:48:59 +12: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
f34e0f5f2b
#2287 - ebean-migration: For multiple platforms automatically run the correct migrations
2021-08-05 23:03:02 +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
Rob Bygrave
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
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
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
777d322222
#2279 - Remove _ebean_getMarker() from EntityBean interface - not actually required
2021-07-30 14:51:38 +12: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
20becf951d
Use MutationDetection replacing dirtyDetection and keepSource
...
Also adds NoMutationDetection to support NONE
2021-07-29 23:11:42 +12:00