Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.2.5ga
Mapping documents:not relevant
Code between sessionFactory.openSession() and session.close():
Code:
session.save(newObject);
session.refresh(newObject); //needed because a trigger is involved
...
session.flush();
Full stack trace of any exception that occurs:
HibernateException: this instance does not yet exist as a row in the database
Name and version of the database you are using:
Oracl10g
Hi,
I switched from
Hibernate 3.1.2 to 3.2.5ga. The above code snippet worked in version 3.1.2. After upgrading to 3.2.5ga I get the HibernateException: this instance does not yet exist as a row in the database.
When I remove
Code:
session.refresh(newObject)
it works. However I need to refresh the object because a trigger on the database added some values.
Why does Hibernate 3.2.5ga behaves differently in comparison to 3.1.2?! Has something changed which I have to consider?
greetings,
Tina