emfjson / emfjson-jackson

JSON Binding for Eclipse Modeling Framework
https://emfjson.github.io
Other
80 stars 23 forks source link

Cross-document containment is not handled correctly for arrays of references #22

Closed zdraw closed 12 years ago

zdraw commented 12 years ago

When given an array of containment references to objects contained in another resource, the array is processed during fillEContainment instead of fillEReference. (containment = true, resolveProxies = true)

Small example.. The following is stored in resource - toys { "_id" : 1, "eClass" : "Toy", "name" : "Buzz", } And this object is in resource - boxes { "eClass" : "Box", "crossDocContainmentRefs" : { [ {"eClass" : "Toy", "$ref" : "../toys/1"} ]} }

ghillairet commented 12 years ago

Ok I see, there is no check for the resolveProxies for containments, will fix asap.

ghillairet commented 12 years ago

Made changes to support cross document containments, will publish new update site later.

BryanHunt commented 12 years ago

Any idea when this will go into the p2 repo?

ghillairet commented 12 years ago

I've publish the update, sorry for the delay. The new version is 0.5.0.201210171429, it's just publish so you may have to wait a little before seeing it.