Beginner |
|
Joined: Sat Jan 31, 2004 10:09 am Posts: 26
|
Hibernate version:2.1.6
Full stack trace of any exception that occurs: Caused by: net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: kk.Organization net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2768) net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2760) net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66) net.sf.hibernate.type.EntityType.isDirty(EntityType.java:139) net.sf.hibernate.type.TypeFactory.findDirty(TypeFactory.java:225) net.sf.hibernate.persister.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:268) net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2508) net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2458) net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2260) net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2239) net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61) hibernate.SessionUtil.executeTxn(SessionUtil.java:167)
Name and version of the database you are using:MySQL 4.0.20a
This message only shows which transient object needs to be saved first. But it doesn't indicate that this transient object is a property of which entity. We may save more than one entities in a transaction, if you can display the exception more detail, it will be helpful for us to debug. thanks a lot.
|
|