javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.com.ozelo.entidades.Opcional

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Will Keeling

Check your annotations to use the proper table and column names.

Solutions on the web

via Stack Overflow by Ozelo
, 1 year ago
javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.com.ozelo.entidades.Opcional
via Stack Overflow by daydreamer
, 2 years ago
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not prepare statement
via Stack Overflow by Royi Freifeld
, 2 years ago
java.lang.IllegalArgumentException: Unknown entity: business.entities.User
via Stack Overflow by Felipe Cabral
, 1 year ago
javax.persistence.PersistenceException: org.hibernate.MappingException: Unknown SqlResultSetMapping [UnidadeResult]
via pastie.org by Unknown author, 2 years ago
java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
via ejbca by vaibhav3s
, 1 year ago
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: br.com.ozelo.entidades.Opcional
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1152)
at br.com.ozelo.DAO.BasicDao.addEntity(BasicDao.java:22)
at br.com.ozelo.DAO.SubModeloDao.novoSubModelo(SubModeloDao.java:24)
at br.com.ozelo.servico.SubModeloService.novoSubModelo(SubModeloService.java:47)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
13 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.