• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LockMode.UPGRADE in Hibernate

 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upgrade mode works for Select for Update.Which means we select the data with some query and we can lock that for the following update.

My question is how long the records are being locked.. If i update some of the objects then other records will still stay locked.

I will be updating only certain records not all of the records based on the business rules.

My concern is tha will the not udpated records stay locked all of the time or how long ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic