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

Stack Overflow | Bloodlex | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    No query defined for that name using Hibernate API

    Stack Overflow | 8 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