-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Locking a record only for a certain period of time?
PostPosted: Sat Mar 10, 2007 12:31 pm 
Newbie

Joined: Thu Sep 02, 2004 10:57 am
Posts: 3
I am planning to use Hibernate 3.2.2 together with MS SQL Server 2000 for my project. I have a requirement as follows:

When a user selects a record for edit, the record must be locked. If the user does not submit any update within 20 minutes, then the record can be edited by other users after 20 minutes. If the user does submit changes within 20 minutes, then the record is immediately available for edit by other users.

I am not sure Hibernate 3.2.2 together with MS SQL Server 2000 can do this.

If they can, could you please let me know the general ideas or pointers about how to do this?

If they cannot, I am thinking about using two extra fields for the above requirement: one for recording the time a record is read for edit; the other for recording whether the edit operation is finished. Do you think this will work? Please advise.

Thanks in advance!!!

Best,
David


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.