That's the drawback of offering a save method which is ok for Document stores, but not for JPA.
This article explains the topic in more details.