Hi,
I'm a total newbie to hibernate and to locking as well so I read few times the manual about locking, but since I have no experience with locking I don't know how I should solve the following problem:
My application uses hibernate to connect to the oracle db, and read data..
I have a status flasg which show what the application user should do with the record.
if only 1 person logs in, there is no problem of course. as he searches the db, and starts working with the records, changing them one by one. until he processes all of them.
but what if 5 users log in, they all will see that there is 20 new records to process, they will all start let's say in the same time... I will have problem as I have to make sure records processed only onces. :) I also have a cluster where the application is running.
how can I use hibernate locking to aboid this problem? is there any easy way to do this without changint the DB modell (that's something I can't do :))
Thanks for any help
|