1. 执行类

public class BooleanConverter implements AttributeConverter<Boolean, Integer> {

}

2. 属性注解

@Column(name = "VALID")@Convert(converter = BooleanConverter.class)

相关文章:

  • 2022-02-06
  • 2021-11-06
  • 2022-12-23
  • 2021-12-12
  • 2021-12-06
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2019-07-12
  • 2022-03-09
相关资源
相似解决方案