title: unknown column in filed list - jpa
body: <p>I get this error with play framework 1.2.4</p>
  
  <pre><code>org.hibernate.util.JDBCExceptionReporter logExceptions - Unknown column 'mytable0_.id' in 'field list'
  </code></pre>
  
  <p>My Model is</p>
  
  <pre><code>@javax.persistence.Entity
  @Table(name="mytable")
  public class MyTable extends Model{
      @Id
      public BigInteger pid;
      public String ip;
      ...
  
  }
  </code></pre>
  
  <p>where pid is primary key</p>
  
  <p>I tried extending from GenericModel but that gave same error.</p>
  
  <p>I am trying to obtain pid from MyTable based on a particular ip, using this in my controller</p>
  
  <pre><code>List&lt;MyTable&gt; currentIP = MyTable.find("select a from MyTable a where ip = '" + SelectedIP + "'").fetch();
  </code></pre>