Daniel Demesmaecker wrote:Your querry isn't correct:
Not in JPA. It's correct. I looked very closely at this earlier, but I couldn't find anything wrong, myself. The best I could think to do would be to turn up the logging levels for the "org.hibernate" loggers.
Sources may include data from the Fakebook Research Foundation with support from Gargle University
Saravanakumar Jeyavel wrote:Error:
java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Product is not mapped [select e from Product e where e.ndc11_cd = :ndc11_cd]
Why are the JPQL query statements in the error message and the code different?
Error message: select e from Product e where e.ndc11_cd = :ndc11_cd
Code: select e from Product e where e.product_cd = :product_cd