|
|
|
|
|
|
The mapping of {{EmbeddableMappingTest.testEmbeddableCollection()}} does not look right. Specifically, it should not contain any "doth names" but properly nested JSON trees instead. Also there is a duplication of node names (there is some special handling for this in the MongoDB module). That's the current mapping (after rebasing everything to ORM 5):
{code} { "goodBranch": { "storyText": "you go to the village", "ending": { "text": "village ending - everybody is happy", "score": 1 } }, "evilBranch": { "storyText": "you kill the villagers" }, "chaoticBranches": [ { "chaoticBranches.evilEnding.text": "you become a demon", "chaoticBranches.evilText": "assassinate the leader of the party", "chaoticBranches.evilEnding.score": 10 }, { "chaoticBranches.goodText": "you punish the bandits", "chaoticBranches.evilText": "search the evil [artifact]" } ], "neutralBranches": [ { "neutralBranches.evilText": "steal the [artifact]" }, { "neutralBranches.evilText": "kill the king" } ] } {code}
Whereas it should be the following:
{code} { "goodBranch": { "storyText": "you go to the village", "ending": { "text": "village ending - everybody is happy", "score": 1 } }, "evilBranch": { "storyText": "you kill the villagers" }, "chaoticBranches": [ { "evilEnding" : { "text": "you become a demon", "score": 10 }, "evilText": "assassinate the leader of the party", }, { "goodText": "you punish the bandits", "evilText": "search the evil [artifact]" } ], "neutralBranches": [ { " evilText": "steal the [artifact]" }, { " evilText": "kill the king" } ] } {code}
|
|
|
|
|
|