Make fields private, remove unnecessary parentheses, add keyword WHERE
when optimistic lock is present, but no primary key