class TimestampToLongMapper implements TypeMapper<Timestamp, Long> {

    @Override
    public String getLabel() {
        return "Timestamp to Long";
    }

    @Override
    public Type getJavaType(Column column) {
        return Long.class;
    }

    @Override
    public Long toJavaType(Column column, Class<?> entityType, Timestamp value) {
        return value == null ? null : value.getTime();
    }

    @Override
    public Timestamp toDatabaseType(Long value) {<FILL_FUNCTION_BODY>}
    
    @Override
    public Ordering getOrdering() {
        return Ordering.RETAIN;
    }
    
}

        return value == null ? null : new Timestamp(value);
    
<no_super_class>