Hi ivyteam Here i have an example about record on Ivy database (it's JSON) the asked 02.11.2016 at 08:53 trungdv |
Every complex object that occurs in BusinessData will get a generated ID which has a prefix of "$Ref-" followed by an increasing integer. This generated ID is used to store references to other objects in the same BusinessData without duplicating the JSON tree. It guarantees that stored objects will not only be equal after de-serialization, but also of same instance (if they we're at serialization time). If an object is referenced multiple times within your BusinessData object tree, the first occurence of the object will be stored fully with an @id field. Any later reference will be stored with a simple back reference by using the "$Ref-X". The following example demonstrates that. My java object tree is a class with has a CEO and CTO field. And these objects are also reference in an List within the "members" field. Java Object Tree:
Serialized JSON:
answered 02.11.2016 at 12:01 Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 02.11.2016 at 08:53
Seen: 3,673 times
Last updated: 02.11.2016 at 12:03