grails/hibernate - use lock with getAll() method -
as documented utilize obtain pessimistic lock this:
def airport = airport.get(10, [lock:true) airport.lock() // lock update airport.name = "heathrow" airport.save()
i tried de same think getall doesn't work
def airport = airport.getall(idslist, [lock:true])
error:
getall() applicable argument types: (java.util.arraylist, java.util.linkedhashmap)...
is there way obtain pessimistic lock list?
thanks
hibernate grails pessimistic-locking
No comments:
Post a Comment