The problem is that two identical embedded in an association have the same RowKey. The RowKey is used as key in maps and when we create the map the last RowKey overrides the previous one.