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.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.
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