orientechnologies/orientdb — pull request #2320 by kowalot (2014-05-06 19:27:49+00:00)
Title: RidBag deserialization from JSON when @fieldType is provided

Useful for INSERT INTO CONTENT when you want to preinitialize ridbags
Combined with single UPDATE ADD in_edgeField can be efficent way to create 1-N edges.

PS. ODocument I couln't find more elegant way to reset RidBag owner (it's needed when two documents are merged INSERT INTO CONTENT--> ODocument.merge()
The other option was to enhance setOwner(owner) to setOwner(owner,forceFlag)