Hi,
I have a problem with my application using Hibernate 3.2.
I have several dialogs loading data, displaying it, and saving them. The dialogs are all the same because I copied the code, only the fields have been changed (entity, address, bank account). For entities and address everything works fine, but with the bank accounts I get an ObjectNotFound exception when try to save the new record to the database and refreshing the view reloading the data. The strange thing though is that the record is properly saved. When I click on a mamual refresh button, which uses the same code, the data is also properly shown. Only when I savie it and immediately call the refresh it doesn't work and I have no idea why.
The session is also commited before I refresh, so it shouldn't be a problem with the session to my understanding. Any idea where I could look for to find out what the problem is?
|