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?
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
java mysql hibernate jpa enums