Optimistic Locking problem

From: Marek Šab (msab..uk.cvut.cz)
Date: Sun Apr 11 2010 - 13:40:16 EDT

  • Next message: Bryan Lewis: "Re: Optimistic Locking problem"

    Hi all,

    I would like to ask a question abou OL, I'm using cayenne filter along
    with wicket and I set OL through cayenne modeller and double-checked in
    xml (lock-type="optimistic" in obj-entity). But when I log in in two
    different browser and try to update users information I don't get ol
    exception and log says:

    UPDATE UserInfo SET room = ? WHERE userId = ?
    2010-04-11 19:37:43,166 INFO - QueryLogger - [bind:
    1->room:421, 2->userId:21]

    so there are missing where clauses which should prevent the update.
    Is there something that needs to be configured in order for it to work,
    or is this a bug?

    TIA

    -- 
    Marek Šabo
    



    This archive was generated by hypermail 2.0.0 : Sun Apr 11 2010 - 13:41:00 EDT