ramnath wrote:
Ok, let me see if I get it right. When I start loading all my business objects in order to show them to the user, then I start a session and a transaction, that ends as soon as the loading finishes. Then, when the user wants to change an object, I start another transaction within the same session, and commit/rollback it. Once the user exits from the GUI editing panel, I close the session. Could it work like this?
What if I've got several panels for editing different kinds of objects, do you recommend opening new sessions for all of them or keeping a single session for the whole application?