Yes, the JPA @Version
annotation allows you to define a version property, I assume ObjectDB just creates a this property by default.
Your own property can be an Integer, Long or Short (or their primitive equivalents), or a java.sql.Timestamp.
Most JPA providers I'm aware of only do optimistic locking if you explicitly use the @Version
annotation.