The Vaadin book says I can set a column for optimistic locking as follows:
tq.setVersionColumn("OPTLOCK");
However it also says that:
TableQuery assumes that the database will take care of updating the version column by either using an actual VERSION column (if supported by the database in question) or by a trigger or a similar mechanism
How do I take care of updating the version column in the database?
Any help is much appreciated