Ideally , we should suuport support this for document store stores in general.
Some times users need to map this kind of documents: {code} { _id: ObjectId("abc"), userId: "123" experiments: { "experiment1" : {"variantA" : "variantValue1", "variantB", "VariantValue2" "variantC", "VariantValue3"},
"experiment2" : {"variantD", "VariantValue4"} } } {code}
Basically, it's the mapping of collection of embeddables with another collection of embeddables.
The problem is that this mapping is not supported by JPA or Hibernate, we need to find an alternative. Maybe a user could use entities instead of embeddables and with some additional OGM specific annotation or properties the user can specify this mapping. |
|