class TimestampToPrimitiveIntMapper implements TypeMapper<Timestamp, Integer> {

    @Override
    public String getLabel() {
        return "Timestamp to int";
    }
    
    @Override
    public Type getJavaType(Column column) {
        return int.class;
    }

    @Override
    public Integer toJavaType(Column column, Class<?> entityType, Timestamp value) {<FILL_FUNCTION_BODY>}

    @Override
    public Timestamp toDatabaseType(Integer value) {
        return value == null ? null : new Timestamp(value * 1000L);
    }
    
    @Override
    public Ordering getOrdering() {
        return Ordering.RETAIN;
    }
}

        return value == null ? null : (int) (value.getTime() / 1000);
    
<no_super_class>