Hibernate ORM UserVersionType - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM UserVersionType class.

This code example shows how to use the following methods:getColumnMapper
    public abstract int compare(Object o1, Object o2); 
    public T seed(SessionImplementor session) {
        final VersionableColumnMapper<T, J> columnMapper = getColumnMapper();
        if (seed == null) {
            return columnMapper.fromNonNullValue(columnMapper.generateCurrentValue());
        } else { 
            return columnMapper.fromNonNullValue(seed.getTimestamp(session));
    public T next(Object current, SessionImplementor session) {
        return seed(session);