Renames Entity#getVersion method to Entity#getOptlockVersion.

Renames an optimistic locking column name to optlock_version.