title: JavaEntity Bean defined but being passed as a class object
body: <pre><code>public Result addHouse() {
      House house = Form.form(House.class).bindFromRequest().get();
      house.save();
      return redirect(routes.Application.index());
  }
  </code></pre>
  
  <p>// Above code calls the .save() method on the EntityBean to save it to the database - instead throwing error illegalArgument</p>
  
  <pre><code>import play.db.ebean.Model;
  
  import javax.persistence.Entity;
  import javax.persistence.Id;
  /**
   * Created by ctcmacadmin on 6/21/15.
   */
  @Entity
  public class House extends Model{
  
      @Id
      public String id;
  
      public String owner;
      public String address;
      public String postalCode;
  }
  </code></pre>
  
  <p>// Above code defines the House object as an JPA Entity</p>
  
  <pre><code>[IllegalArgumentException: Was expecting an EntityBean but got a class model.House]
  </code></pre>
  
  <p>// Above is the resulting error from calling the addHouse() Method</p>