Skip to content
Advertisement

Tag: persistent

Detached entity passed to persist when save the child data

I’m getting this error when submitting the form: org.hibernate.PersistentObjectException: detached entity passed to persist: com.project.pmet.model.Account; nested exception is javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.project.pmet.model.Account Here are my entities: Account: Team: Here’s a part of the Controller: And the form: What am I doing wrong? Answer Save method accepts only transient objects. What is the transient object you can

Advertisement