My model contains an enum, which are mapped by JPA to an int column on my mysql database.
mysql has a native enum type, that would be more convenient to use.
How can I configure JPA to use this type?
@Entity
public class User extends Model {
  public enum Role {
    User,
    Moderator,
    Admin,
  }
  public Role role;
}