I think the right usage is:
UPDATE myentity SET deleted = 1 WHERE myentityid = ? AND lastupdated = ?
Hibernate should manage the increment/update of lastupdated by itself.
I think the right usage is:
UPDATE myentity SET deleted = 1 WHERE myentityid = ? AND lastupdated = ?
Hibernate should manage the increment/update of lastupdated by itself.