|
I am evaluating the use of Hibernate and cannot work out how to do the following. My database is a single user database running locally on the users PC.
I wish to interact with the user as follows:
Start a transaction.
Use performs change to a table (insert, updates, deleted)
User then chooses to apply changes or cancel.
To apply, the transaction is commited, to cancel the transaction is rolledback.
While the user is performing operations, I would like any queries to return the objects current state. However, if the user has deleted an object it is still returned by my findbycriteria.
Any suggestions???
Thanks,
Neal
|