java.lang.IllegalArgumentException: No query defined for that name [SugerowanaPozycja.getByCategory]

Stack Overflow | Bloodlex | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    No query defined for that name using Hibernate API

    Stack Overflow | 10 months ago | Bloodlex
    java.lang.IllegalArgumentException: No query defined for that name [SugerowanaPozycja.getByCategory]

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No query defined for that name [SugerowanaPozycja.getByCategory]

      at org.hibernate.internal.AbstractSharedSessionContract.getNamedQuery()
    2. Hibernate
      AbstractSharedSessionContract.getNamedQuery
      1. org.hibernate.internal.AbstractSharedSessionContract.getNamedQuery(AbstractSharedSessionContract.java:546)
      2. org.hibernate.internal.AbstractSharedSessionContract.getNamedQuery(AbstractSharedSessionContract.java:101)
      2 frames
    3. pl.nombritech.Menual
      GlowneOknoController.initialize
      1. pl.nombritech.Menual.dao.SugerowanaPozycjaDAO.getByKategoria(SugerowanaPozycjaDAO.java:90)
      2. pl.nombritech.Menual.view.GlowneOknoController.uzupelnijSugerowanePozycje(GlowneOknoController.java:227)
      3. pl.nombritech.Menual.view.GlowneOknoController.initialize(GlowneOknoController.java:210)
      3 frames