Regular |
|
Joined: Tue Jan 27, 2004 12:22 pm Posts: 103
|
Hibernate version: Hibernate 2.1.4
Name and version of the database you are using:HSQLDB server 1.7.1 is running
When I want to remove an object through session.delete(obj) and it's still associated in my application Hibernate throws an Exception (net.sf.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade). This is exactly what I want, because then I do a rollback on the transaction and I can tell the user the object can't be removed. But the problem is: on the next flush of the session the exception keeps comming back and makes the session unusable. Please help me to resolve this issue.
transaction.rollBack finishes succesful and wasRolledBack returns true.
By design I use a single session per application. This is because I use alot MVC in the GUI and thus require the same objects throughout my application.
_________________ Dencel
- The sun has never seen a shadow -
|
|