title: Could not resolve property from Entity
body: <p>I have these entities configuration:</p>
  
  <p>Main table:</p>
  
  <pre><code>@Entity
  @Table
  public class Merchants {
  
      @Id
      private int id;
  
      @OneToMany(mappedBy = "merchants")
      private List&lt;Contracts&gt; contracts;
  }
  
  @Entity
  @Table
  public class Contracts {
  
      @Id
      private int id;
  
      @Column(length = 255)
      private String name;
  
      @ManyToOne(fetch = FetchType.LAZY)
      @JoinColumn(name = "merchant_id")
      private Merchants merchants;
  }
  </code></pre>
  
  <p>I use this JPA query:</p>
  
  <pre><code>String hql = "select e from " + Contracts.class.getName() + " e where e.merchant_id = ?";
  
          Query query = entityManager.createQuery(hql).setParameter(0, merchantId);
  </code></pre>
  
  <p>Table column merchant_id is present when I deploy the package.
  But I get exception during SQL query:</p>
  
  <pre><code>Caused by: org.hibernate.QueryException: could not resolve property: merchant_id of: org.rest.api.entity.Contracts [select e from org.rest.api.entity.Contracts e where e.merchant_id = ?]
  </code></pre>
  
  <p>Do you have any idea why merchant_id is no mapped?</p>