title: No property show found for type in spring data
body: <p>I have simple webapp in spring 3, jpa, eclipse link, spring data. When I try run it (on VMware server) I have got error:</p>
  
  <pre><code>org.springframework.data.mapping.PropertyReferenceException: No property show found for type foo.domain.Catalog
  </code></pre>
  
  <p>Entity:</p>
  
  <pre><code>@Entity
  @Table(name="catalog")
  @NamedQuery(name="Catalog.findAll", query="SELECT c FROM Catalog c")
  public class Catalog implements Serializable {
  private static final long serialVersionUID = 1L;
  
  @Id
  @GeneratedValue(strategy=GenerationType.AUTO)
  private String id;
  
  private String adres;
  
  private String opis;
  
  private String tytul;
  
  //bi-directional many-to-one association to Category
  @ManyToOne
  @JoinColumn(name="cname", referencedColumnName="name")
  private Category category;
  
  public Catalog() {
  }
  
  public String getId() {
      return this.id;
  }
  
  public void setId(String id) {
      this.id = id;
  }
  
  public String getAdres() {
      return this.adres;
  }
  
  public void setAdres(String adres) {
      this.adres = adres;
  }
  
  public String getOpis() {
      return this.opis;
  }
  
  public void setOpis(String opis) {
      this.opis = opis;
  }
  
  public String getTytul() {
      return this.tytul;
  }
  
  public void setTytul(String tytul) {
      this.tytul = tytul;
  }
  
  public Category getCategory() {
      return this.category;
  }
  
  public void setCategory(Category category) {
      this.category = category;
  }
  </code></pre>
  
  <p>Interface repository:</p>
  
  <pre><code>public interface KatalogRepository extends JpaRepository&lt;Catalog, Long&gt;{
  
      @Query("select c from Catalog c left join fetch c.name")
      public List&lt;Catalog&gt; showAll();
      @Query("select c from Catalog c where c.tytul like %?1")
      public Catalog findByTytul(String tytul);
      @Query("select c from Category c")
      public List&lt;Category&gt; showAllCategory();
      @Query("select c from Category c where c.id =:id")
      public Category findCategoryById(Long id);
  
  }
  </code></pre>
  
  <p>I tried many solutions but didn't help. Has someone got the similar problem? Thanks for help.</p>
  
  <p>My dao class:</p>
  
  <pre><code>@Repository
  public class KatalogDAO {
  
      @Autowired
      KatalogRepository katalogRepository;
      //@Autowired
      //CategoryRepository categoryRepository;
      @Transactional
      public List&lt;Catalog&gt; showAllSites(){
          return katalogRepository.showAll();
      }
  
      @Transactional
      public void saveSite(Catalog catalog){
          katalogRepository.saveAndFlush(catalog);
      }
      @Transactional
      public Catalog showByTitle(String tytul){
          return katalogRepository.findByTytul(tytul);
      }
      @Transactional
      public List&lt;Category&gt; showAllCategory(){
          return katalogRepository.showAllCategory();
      }
      @Transactional
      public Category findCategoryById(Long id){
          return katalogRepository.findCategoryById(id);
  
      }
  }
  </code></pre>
  
  <p>And endpoint:</p>
  
  <pre><code>@Component
  public class CatalogEndpoint {
  
      @Autowired
      KatalogDAO katalogDAO;
  
      public List&lt;Catalog&gt; showAllSites(){
          return katalogDAO.showAllSites();
  
      }
  
      public void saveSite(Catalog catalog ){
          katalogDAO.saveSite(catalog);
      }
  
      public Catalog getByTitle(String tytul){
          return katalogDAO.showByTitle(tytul);
      }
  
      public List&lt;Category&gt; showCategory(){
          return katalogDAO.showAllCategory();
      }
  
      public Category findCategoryById(Long id){
          return katalogDAO.findCategoryById(id);
  
      }
  }
  </code></pre>