title: org.hibernate.QueryException: could not resolve property but another property is found
body: <p>I have entity</p>
  
  <pre><code>@Entity
  @Table(name = "CRM_LOG")
  public class CrmLog implements Serializable {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private @Getter @Setter Long id;
      ..........
      @OneToOne
      private @Getter @Setter CrmUser crmUser;
  }
  </code></pre>
  
  <p>and another entity </p>
  
  <pre><code>@Entity
  @Table(name = "CRMUSER")
  public class CrmUser implements Serializable {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
      private Integer groupId;
  
  public Integer getGroupId() {
          return groupId;
      }
  
      public void setGroupId(Integer groupId) {
          this.groupId = groupId;
      }
  }
  </code></pre>
  
  <p>and I make hibernate criteria select</p>
  
  <pre><code>criteria.add(Restrictions.in("crmUser.id", selectedIds));
  </code></pre>
  
  <p>and it work fine. but this criteria is failed</p>
  
  <pre><code>criteria.add(Restrictions.in("crmUser.groupId", filterGroupIds));
  </code></pre>
  
  <p>I get an error</p>
  
  <pre><code>org.hibernate.QueryException: could not resolve property: crmUser.groupId of: crm.entity.CrmLog
  </code></pre>