title: (playframework 2.0.2-java) EBean - No ScalarType registered error when querying with enum values
body: <p>I have Role entity class:</p>
  
  <pre><code>@Entity
  public class Role extends Model {
  
      @Id
      @Constraints.Required
      public Integer id;
  
      @Constraints.Required
      @Formats.NonEmpty
      @Enumerated(EnumType.STRING)
      public RoleNameEnum name; // name is enum value
  }
  </code></pre>
  
  <p>In some test I try to find users by role:</p>
  
  <pre><code>List&lt;User&gt; users = User.findByRole(Role.findByRoleName(RoleNameEnum.ADMIN));
  </code></pre>
  
  <p>where method <code>findByRoleName()</code> is following:</p>
  
  <pre><code>public static List&lt;User&gt; findByRole(Role role) {
      return find.where().eq("role", role).findList();
  }
  </code></pre>
  
  <p>I receive error:</p>
  
  <pre><code>[error] Test UserTest.findUsersByRole failed: No ScalarType registered for class models.Role
  [error]     at com.avaje.ebeaninternal.server.persist.Binder.bindObject(Binder.java:183)
  [error]     at com.avaje.ebeaninternal.server.query.CQueryPredicates.bind(CQueryPredicates.java:162)
  [error]     at com.avaje.ebeaninternal.server.query.CQuery.prepareBindExecuteQuery(CQuery.java:413)
  [error]     at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:198)
  [error]     at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:104)
  [error]     at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:344)
  [error]     at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1469)
  [error]     at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:906)
  [error]     at com.avaje.ebeaninternal.util.DefaultExpressionList.findList(DefaultExpressionList.java:201)
  [error]     at models.User.findByRole(User.java:63)
  [error]     at UserTest$4.run(UserTest.java:62)
  [error]     at play.test.Helpers.running(Helpers.java:294)
  [error]     at UserTest.findUsersByRole(UserTest.java:58)
  </code></pre>
  
  <p>Does anybody have an idea what might be a problem?</p>