class PrimitiveIntegerZeroOneToBooleanMapper
    implements TypeMapper<Integer, Boolean> {

    @Override
    public String getLabel() {
        return "Integer (0|1) to boolean (primitive)";
    }

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

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

    @Override
    public Integer toDatabaseType(Boolean value) {
        if (value == null) {
            return null;
        } else {
            return value ? 1 : 0;
        }
    }

    @Override
    public Ordering getOrdering() {
        return Ordering.RETAIN;
    }

}

        return value == null ? null : value != 0;
    
<no_super_class>