I'm using MySQL and JPA.
I have an enum that has it's own table.
I have a field in an entity (entity1) that uses this enum. This field is annotated with:
1 - is it correct to persist this field in entity1 as a column in the db when it has it's own table?
2 - if I am using
@JsonProperty on my other fields and answer to 1 is "yes", must I use
@JsonProperty on the enum field too?
3 - what's the point in having the enum in a separate table?
Currently, with just the @Enumeration annotation and a column for the enum for entity1 I get error:
was annotated as enumerated, but its java type is not an enum