From 9cba3a067e141bfda3801919e14021f04be86919 Mon Sep 17 00:00:00 2001 From: p-a-s-c-a-l Date: Thu, 30 Jun 2016 10:22:54 +0200 Subject: [PATCH] #174 boolean flag intraObjectCacheEnabled in CidsBean.createNewCidsBeanFromJSON() is not evaluated! --- src/main/java/de/cismet/cids/dynamics/CidsBean.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/cismet/cids/dynamics/CidsBean.java b/src/main/java/de/cismet/cids/dynamics/CidsBean.java index 56ddc468..91de7b0b 100644 --- a/src/main/java/de/cismet/cids/dynamics/CidsBean.java +++ b/src/main/java/de/cismet/cids/dynamics/CidsBean.java @@ -1073,7 +1073,12 @@ public static CidsBean createNewCidsBeanFromTableName(final String domainName, */ public static CidsBean createNewCidsBeanFromJSON(final boolean intraObjectCacheEnabled, final String json) throws Exception { - return intraObjectCacheMapper.readValue(json, CidsBean.class); + // #174 boolean flag intraObjectCacheEnabled in CidsBean.createNewCidsBeanFromJSON() is not evaluated + if (intraObjectCacheEnabled) { + return intraObjectCacheMapper.readValue(json, CidsBean.class); + } else { + return mapper.readValue(json, CidsBean.class); + } } /**