"org.hibernate.QueryException: could not resolve property" error when trying to execute a JPA query in JBoss EAP 6
Issue
Found the following error while executing a JPA query on a deployed application:
org.hibernate.QueryException: could not resolve property:
newProperty of: my.package.MyPOJO
[SELECT b FROM my.package.MyPOJO b WHERE b.something = :something and b.newProperty = :newProperty ]
Environment
- Red Hat Jboss Enterprise Application Platform (EAP) 6.x
- JPA 2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.