"org.hibernate.QueryException: could not resolve property" error when trying to execute a JPA query in JBoss EAP 6

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content