Yes, is possible. It should be:
@Enumerated(EnumType.STRING)
@Column(name = "category_type")
private CategoryType categoryType;
Yes, is possible. It should be:
@Enumerated(EnumType.STRING)
@Column(name = "category_type")
private CategoryType categoryType;