Hi there,
This is my first question on the forum because I usually try as much as possible to find solutions by myself, but here I'm stuck.
Here the context: - I'm building an Eclipse RCP application (client) which uses Hibernate (+ H2) to store its data - The application mainly works on a huge tree (several millions of nodes) kept in the H2 database through Hibernate
I'm keeping a long session opened in order to browse those nodes (the parent-children relation is a lazy one) from an Eclipse View. All is globally working perfectly but here is the problem: there are some jobs which use their own session to update the tree (those sessions are shorts: closed and committed once the job is done). But when I reload a node from the lazy session which was supposed to be updated by the job, it seems like it's not updated (in fact it is because when I restart the application I can see the update). So it seems like when I call load on the opened lazy session, the node doesn't reflect the modifications made by the other committed job session. Is that normal? Is their a way to get an updated object from a opened lazy session?
Thanks a lot for your help and sorry for my english!
|