net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.abc.model.MyTable2
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 java2s.com by Unknown author, 1 year ago
via Coderanch by Sebastiaan Kortleven, 1 year ago
via Hibernate JIRA by Simon Spero, 2 years ago
via Hibernate JIRA by Simon Spero, 1 year ago
via Coderanch by Sebastiaan Kortleven, 1 year ago
via GitHub by wezell
, 2 years agonet.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.abc.model.MyTable2
at net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2652)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2644)
at net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
at net.sf.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:46)
at net.sf.hibernate.type.ComponentType.nullSafeSet(ComponentType.java:154)
at net.sf.hibernate.loader.Loader.bindPositionalParameters(Loader.java:673)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:712)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:184)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:132)
at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:830)
at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:850)
at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:57)