Martin Melka

Pilsen, Czech Republic

w3sayit.wz.cz

Age: 22

Studying CTU, Faculty of Information Technology, Software Engineering

Dec
16
awarded Popular Question
Dec
15
awarded Popular Question
Dec
8
awarded Popular Question
Nov
19
asked Grails project unable to resolve org.junit
Nov
17
awarded Teacher
Nov
3
awarded Yearling
Nov
3
awarded Yearling
Oct
29
asked Sql error when using GORM's dynamic FindAllBy method - #2 is not set
Oct
28
awarded Popular Question
Sep
16
awarded Notable Question
Aug
23
awarded Yearling
Aug
23
awarded Yearling
Jul
29
awarded Supporter
Jul
29
awarded Autobiographer
Jul
25
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 189 characters in body
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
Now I am getting the StaleObjectStateException when calling game.lock(). I wonder, does Grails handle waiting for releasing the lock, or does it just throw an exception in my face and I have to deal with it myself?
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
I added code that is executed. Sadly, I still get the same error, even using criteria
Jul
25
revised Grails org.hibernate.StaleObjectStateException for simultaneous requests
added 2751 characters in body
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
I retrieve the object like so def player = Player.findAllByLogin(login).get(0) .. is it enough to call player.lock() afterwards, or not?
Jul
25
comment Grails org.hibernate.StaleObjectStateException for simultaneous requests
does the lock apply to the whole domain hierarchy? e.g. I retrieve a Player object from the database, it owns a Game object and that in turn owns a Turn object. Do all 3 get locked (because I might update them all)?
1 2 3 4 5