posted 16 years ago
Hi,
We some issues in usage of hibernate 3. I always have an issue with the below error.
Could some one help me in understanding the root cause.
We are opening the session as follows:
s = sessionFactory.openSession();
Loading as follows:
hbnSession.load(objDbObject, new Integer (objectId)) ;
Thanks in advance.
ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
at org.hibernate.impl.SessionImpl.checkId(SessionImpl.java:1204)