hibernate/hibernate-ogm — pull request #355 by w0mbat (2014-08-05 16:55:00+00:00)
Title: OGM-587 Added test case that shows the failure

I have an entity (User) which contains an embedded document (EmbeddedList) which contains an @ElementCollection List and another field.
As soon as I try to save the user with an empty embedded document, the process fails with "com.mongodb.MongoException$DuplicateKey error" although the entity has not been stored so far.