@@ -0,0 +1,755 @@
+package org.carbon.persistent.adhoc;%0A%0Aimport org.jooq.Converter;%0A%0A/**%0A * @author garden 2018/03/25.%0A */%0Apublic class BooleanConverter implements Converter%3CByte, Boolean%3E %7B%0A%0A    private byte FALSE = 0;%0A    private byte TRUE = 1;%0A%0A    @Override%0A    public Boolean from(Byte databaseObject) %7B%0A        if (databaseObject == null) %7B%0A            return null;%0A        %7D%0A        return databaseObject == TRUE;%0A    %7D%0A%0A    @Override%0A    public Byte to(Boolean userObject) %7B%0A        if (userObject == null) %7B%0A            return null;%0A        %7D%0A        return userObject ? TRUE : FALSE;%0A    %7D%0A%0A    @Override%0A    public Class%3CByte%3E fromType() %7B%0A        return Byte.class;%0A    %7D%0A%0A    @Override%0A    public Class%3CBoolean%3E toType() %7B%0A        return Boolean.class;%0A    %7D%0A%7D%0A

add converter