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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
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
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!