Bind checkbox

Actually this might be what you need:

import com.vaadin.data.util.converter.Converter;
        
Converter<Boolean, Integer> converter = new Converter<Boolean, Integer>() {

    @Override
    public Integer convertToModel(Boolean value,
            Class<? extends Integer> targetType, Locale locale)
            throws com.vaadin.data.util.converter.Converter.ConversionException {

        return value ? 1 : 0;
    }

    @Override
    public Boolean convertToPresentation(Integer value,
            Class<? extends Boolean> targetType, Locale locale)
            throws com.vaadin.data.util.converter.Converter.ConversionException {

        return value != 0;
    }

    @Override
    public Class<Integer> getModelType() {
        return Integer.class;
    }

    @Override
    public Class<Boolean> getPresentationType() {
        return Boolean.class;
    }
};

checkBox.setConverter(converter);