Hello everybody,
I'm using long conversation pattern for a web application, and there are some problems which I want to ask you (who have more experiences in Hibernate than me :) )
1> Is there other way to refresh a list of object except evict() each of them or clear() the session?
2> When I try to update a stale object, an exception occurs(I expect it) and an error message is showed to user, but when I update again(by clicking a button), the error message is not display and nothing happen because the session is not dirty after fail to update the object.
So I want to ask how to store the state of the session after it fail to do something?
thanks for reading my question.
|