I'll describe more precisely the issue.
This is the original error I have on any insert :
java.lang.RuntimeException: java.util.concurrent.ExecutionException:
play.exceptions.JavaExecutionException:
org.hibernate.PropertyValueException: not-null property references a
null or transient value: models.Contact.person
I fixed it manually by overriding the method save from class Person
like :
for (Contact contact : this.infos) {
contact.person = this;
}
super.save();
Then this works partially, I have this error when infos is filled
PersistenceException occured : org.hibernate.HibernateException: A
collection with cascade="all-delete-orphan" was no longer referenced
by the owning entity instance: models.Person.infos
Can anyone help me to solve this strange issue ?