mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1864 - L2 cache miss for natural key property of type UUID
This commit is contained in:
@@ -66,11 +66,7 @@ public class BeanNaturalKey {
|
||||
*
|
||||
* @param map The bind values for the properties.
|
||||
*/
|
||||
public Object calculateKey(Map<String, Object> map) {
|
||||
if (naturalKey.length == 1) {
|
||||
return map.get(naturalKey[0]);
|
||||
}
|
||||
|
||||
public String calculateKey(Map<String, Object> map) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (BeanProperty prop : props) {
|
||||
sb.append(prop.naturalKeyVal(map)).append(";");
|
||||
|
||||
Reference in New Issue
Block a user