title: Can I configure Play to use mysql enums instead of ints?
body: <p>My model contains an enum, which are mapped by JPA to an <code>int</code> column on my mysql database.</p>
  
  <p>mysql has a native <code>enum</code> type, that would be more convenient to use.</p>
  
  <p>How can I configure JPA to use this type?</p>
  
  <pre><code>@Entity
  public class User extends Model {
    public enum Role {
      User,
      Moderator,
      Admin,
    }
  
    public Role role;
  }
  </code></pre>