org.hibernate.PersistentObjectException: detached entity passed to persist
Issue
"org.hibernate.PersistentObjectException: detached entity passed to persist" exception occurs while calling EntityManager.persist method on entity which references other entites with CascadeType.PERSIST.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.