title: 'basic' attribute type should not be Priority
body: <p>The below entity mapping I'd like to cast as a <code>Priority</code> object.  On the getter, when I change "Short" to "Priority" and follow suite with <code>this.priority</code> it complains that a <code>'basic' attribute type should not be priority</code>.  How can I set/get this as Priority?</p>
  
  <pre><code>@Column(name = "priority", nullable = false, insertable = true, updatable = true, length = 5, precision = 0)
  public Short getPriority() {
      return priority;
  }
  
  public void setPriority(Short priority) {
      this.priority = priority;
  }
  </code></pre>
  
  <p>My Priority class:</p>
  
  <pre><code>public class Priority {
      public static final Priority TOP = new Priority("TOP", 100);
  
      public static final Priority PRIORITY_REMAN = new Priority("PRIORITY_REMAN", 250);
  
      public static final Priority PRIORITY = new Priority("PRIORITY", 500);
  
      public static final Priority STANDARD_REMAN = new Priority("STANDARD_REMAN", 750);
  
      public static final Priority STANDARD = new Priority("STANDARD", 1000);
  
      private final String name;
      private final Integer value;
  
      public Priority() {
          this.name = null;
          this.value = 0;
      }
  
      protected Priority(String name, int value) {
          this.name = name;
          this.value = value;
      }
  
      public String getName() {
          return name;
      }
  
      @JsonView({Views.ShutdownView.class})
      public Integer getValue() {
          return value;
      }
  
      public String toString() {
          return getName();
      }
  }
  </code></pre>