net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: edu.unc.hibernate.Name

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by Sebastiaan Kortleven, 11 months ago
object references an unsaved transient instance - save the transient instance before flushing: com.lmsintl.its.aqt.dto.Query
via Atlassian JIRA by Javier Aguilar [Atlassian], 1 year ago
object references an unsaved transient instance - save the transient instance before flushing: com.atlassian.confluence.content.ContentProperty
via java2s.com by Unknown author, 10 months ago
object references an unsaved transient instance - save the transient instance before flushing: com.abc.model.MyTable2
via Coderanch by Sebastiaan Kortleven, 11 months ago
object references an unsaved transient instance - save the transient instance before flushing: com.lmsintl.its.aqt.dto.UserQuery
net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: edu.unc.hibernate.Name
at net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2786)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2778)
at net.sf.hibernate.type.ManyToOneType.disassemble(ManyToOneType.java:93)
at net.sf.hibernate.impl.CacheEntry.disassemble(CacheEntry.java:38)
at net.sf.hibernate.impl.CacheEntry.(CacheEntry.java:29)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:41)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2436)
at net.sf.hibernate.impl.SessionImpl.executeInserts(SessionImpl.java:2328)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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