Fixed
Details
Assignee
GavinGGavinGReporter
Francisco LlestaFrancisco LlestaBug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
CVS Notification ServiceFrancisco LlestaGavinGOriginal estimate
Time tracking
No time logged32h remainingComponents
Fix versions
Affects versions
Priority
Minor
Details
Details
Assignee
GavinG
GavinGReporter
Francisco Llesta
Francisco LlestaBug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
CVS Notification Service
Francisco Llesta
GavinG
Original estimate
Time tracking
No time logged32h remaining
Components
Fix versions
Affects versions
Priority
Created August 20, 2004 at 7:22 PM
Updated October 26, 2004 at 6:36 PM
Resolved October 26, 2004 at 6:23 PM
You see this program:
session = sf.openSession();
tx = session.beginTransaction();
Menu m = new Menu();
// lock record for update
Menu menu = (Menu) session.load(m.getClass(),(Serializable) new BigDecimal(1029), LockMode.UPGRADE);
menu.setName("New Item");
// you do something...
Thread.sleep(10000);
// Update and Unlock record
session.update(menu);
but the record 1029 not hold lock in dataBase, during the delay, becuase, I think you close "PreparedStatement" and then you lose the lock.
Can I hold lock during time delay?
thanks!