https://my.oschina.net/xinxingegeya/blog/359968

 
@Column(name = "store_type", nullable = false)
@Enumerated(EnumType.ORDINAL)
private StoreType storeType;

EnumType.ORDINAL:按0,1,2。。。依次
EnumType.STRING:按枚举值

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2021-10-25
  • 2022-03-03
  • 2021-06-16
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-16
  • 2021-06-19
相关资源
相似解决方案