Announcement Announcement Module
Collapse
No announcement yet.
Enabling Lock at row level Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enabling Lock at row level

    Hi guys,

    Can anyone guide me in how to perform a row lock on the database with spring/hibernate?

    For example, I have a client editing a record in the database, another user meanwhile logs on and deletes the record in the database.

    How can I prevent the other user from gaining access to the record which is being edited?

    Thanks

  • #2
    That stuff is highly db dependent. Hibernate supports pessimistic locking on some databases, but not all. Read up on Session.lock() and Session.load() with lockmode.

    Comment

    Working...
    X