We have a collection which stores a Map as an embedded collection. We need to update fields within individual entries of the Map.
Is there any way to do that?
@Embedded
private Map<String, MyClass> map = new HashMap<String, MyClass>();
we want to update fields inside the map which match a given key. We are using Morphia in our Daos.
You can create an update in Morphia to do this. You will have to use dot-notation to specify the path including the map key.