O'Reilly logo
  • Gangadhara Melukote thinks this is interesting:

Version-locking fields defined on the entity can be of type int, short, long, the corresponding wrapper types, and java.sql.Timestamp.

From

Cover of Pro JPA 2, Second Edition

Note

Version field type