1. 执行类
public class BooleanConverter implements AttributeConverter<Boolean, Integer> {
}
2. 属性注解
@Column(name = "VALID")@Convert(converter = BooleanConverter.class)