hi! i'm a
java newbie and i've been tasked to create this web application. my question is what's good way / strategy to implement data concurrency?
for data concurrency, my officemate suggested this design :
if user A is editing a record in the table then that record should be locked from other users. A class, called UserAccessRightsManager, will supervise all the locked records. So, if user B wishes to edit that record, he must go through UserAccessRightsManager. Is this a good idea? If not, can you give some suggestions? I'm a bit worried with his idea. What if two users edit the same record at the same time?
would appreciate any help! thanks!