org.hibernate.usertype
Interface UserVersionType
- Comparator, UserType
public interface UserVersionType
A user type that may be used for a version property
assemble , deepCopy , disassemble , equals , hashCode , isMutable , nullSafeGet , nullSafeSet , replace , returnedClass , sqlTypes |
next
public Object next(Object current,
SessionImplementor session)
Increment the version.
current
- the current versionsession
- The session from which this request originates.
seed
public Object seed(SessionImplementor session)
Generate an initial version.
session
- The session from which this request originates. May be
null; currently this only happens during startup when trying to determine
the "unsaved value" of entities.