org.hibernate.PropertyValueException: not-null property references a null or transient value: MyEntity.firstPersistedOn

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

Solutions on the web

via Hibernate JIRA by Johan Steiner, 1 year ago
not-null property references a null or transient value: MyEntity.firstPersistedOn
via Hibernate JIRA by Johan Steiner, 1 year ago
not-null property references a null or transient value: MyEntity.firstPersistedOn
via atlassian.net by Unknown author, 2 years ago
not-null property references a null or transient value: MyEntity.firstPersistedOn
via Stack Overflow by rahul
, 2 years ago
not-null property references a null or transient value: com.qait.cdl.eon.commons.domain.ZoneData._com.qait.cdl.eon.commons.domain.Zonning.zoneDatasBackref
via Google Groups by Thomas Grabietz, 4 months ago
not-null property references a null or transient value: de.javacus.rias.beans.ManyToOneCrud.oneToManyCrud
via spring.io by Unknown author, 1 year ago
not-null property references a null or transient value: com.ourdomain.user.Address._addressesBackref
org.hibernate.PropertyValueException: not-null property references a null or transient value: MyEntity.firstPersistedOn
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:262)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:164)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:114)
at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:167)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:113)
at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:60)
at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:540)
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:139)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

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