Hi Team,
Wish you all a very happy new year!
Is there any example on json processing with apache geode?
Could you help us with below examples on how region definition would look
like?
*Example*:
*Case1: Primary key <java.lang.String>*
region.put(String.valueOf(i), JSONFormatter.fromJSON(obj.toJSONString()));
For above, I believe it should be --> Region<String,PdxInstance> then how
does it look like in spring data geode xml configuration?
*Case2: Primary Key <? extends java.lang.Serializable>*
region.put (new CustomObject() ,
JSONFormatter.fromJSON(obj.toJSONString()));
For above, I believe it should be --> Region<CustomObject,PdxInstance> then
how does it look like in spring data geode xml configuration?
*Case3: Is below case valid one and recommended ?*
@Region
Class JSONRegion {
CustomPrimaryKeyObject primaryKey;
JSONObject jsonObject;
// Constructor + Getter/Setter
}
More is there any limitation/pros-cons if we store JSON document as value
vs schema bound domain java object?
Thanks & Regards,
- Dharam Thacker