Code example for DbTimestampType

0
 
public class DbTimestampSeed extends JvmTimestampSeed { 
 
    private static final long serialVersionUID = 5223082239565556715L;
 
    private final DbTimestampType helper = new DbTimestampType();
 
    @Override 
    public Timestamp getTimestamp(SessionImplementor session) {
        Object result = helper.seed(session);
        return convertResult(result); 
    } 
 
    @Override 
    public Timestamp getNextTimestamp(Timestamp current, SessionImplementor session) {
        Object result = helper.next(current, session);
        return convertResult(result); 
    } 
 
    private Timestamp convertResult(Object result) {