是的,有可能。它应该是:
@Enumerated(EnumType.STRING)
@Column(name = "category_type")
private CategoryType categoryType;
在hibernate中将枚举映射到字符串
是的,有可能。它应该是:
@Enumerated(EnumType.STRING)
@Column(name = "category_type")
private CategoryType categoryType;