title: JPA Repository not working properly
body: <p>I am new to Open JPA and I am migrating my application DB services from JPA with Hibernate as vendor provider to JPA with OpenJPA as vendor Provider. Everything is fine, but I am not able to migrate my repositories. I am getting below error:</p>
  
  <pre><code>Caused by: org.springframework.data.mapping.PropertyReferenceException: No property find found for
  type com.entities.LevelPossibilityData
      at org.springframework.data.mapping.PropertyPath.&lt;init&gt;(PropertyPath.java:75)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:327)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:353)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:353)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:353)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:353)
      at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:307)
      at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:271)
      at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:245)
      at org.springframework.data.repository.query.parser.Part.&lt;init&gt;(Part.java:72)
  </code></pre>
  
  <p>Here is my entity:</p>
  
  <pre><code>package com.entities;
  
  import java.io.Serializable;
  import java.math.BigDecimal;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.Id;
  import javax.persistence.NamedQueries;
  import javax.persistence.NamedQuery;
  import javax.persistence.Table;
  
  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
  import org.apache.commons.lang.builder.ToStringStyle;
  
  import java.lang.reflect.Field;
  
  @Entity
  @Table(name = "LEVEL_POSSIBILITY_DATA", schema = "DEV")
  @NamedQueries({
      @NamedQuery(name = "LevelPossibilityData.findAllPossibilityGenIds", query = "SELECT distinct possibilityData.levelPossibilityGenId FROM LevelPossibilityData possibilityData where possibilityData.userCode is not null and possibilityData.possibilityType=?1  order by possibilityData.levelPossibilityGenId asc")})
  
  public class LevelPossibilityData implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue
  @Column(name = "LEVEL_SEQ_ID")
  private BigDecimal levelSeqId;
  
  @Column(name = "LEVEL_USER_CODE")
  private String userCode;
  
  @Column(name = "LEVEL_USER_POSSIBILITY_TYPE")
  private String possibilityType;
  
  @Column(name = "LEVEL_POSSIBILITY_GENERATOR_ID")
  private String levelPossibilityGenId;
  
  }
  </code></pre>
  
  <p>and my Repository:</p>
  
  <pre><code>package com.dao;
  
  import java.io.Serializable;
  import java.util.List;
  
  import org.springframework.data.jpa.repository.JpaRepository;
  
  import com.entities.LevelPossibilityData;
  
  public interface LevelPossibilityDataRepository&lt;ID extends Serializable&gt; extends JpaRepository&lt;LevelPossibilityData, Serializable&gt; {
  
  public List&lt;LevelPossibilityData&gt; findAllPossibilityGenIds(String possibilityType); 
  
  }
  </code></pre>
  
  <p>Can you please help me out in rectifying this error?</p>