title: Spring data JPA findFirst,findTop doesnt work
body: <p>According to <a href="http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories.limit-query-result" rel="noreferrer">section 3.4.5</a> of the Spring Data JPA documentation, the results of a query method can be limited by using the keyword <code>first</code> and <code>top</code>.</p>
  
  <p>I have written my code like this:</p>
  
  <pre><code>SysPrefixName findFirstByTableName(String tableName);
  </code></pre>
  
  <p>However, I get this error when I run the code:</p>
  
  <blockquote>
    <p>result returns more than one elements; nested exception is javax.persistence.NonUniqueResultException: result returns more than one elements</p>
  </blockquote>
  
  <p>Any help on resolving this will be appreciated.</p>