| Hi,
 I have a parent class with three children. Each child represents a table. I would like to run a query against the parent with params that are common to two of the three children. Two of the children contain a phone number column, but the third does not.
 
 My HQL query looks something like:
 
 SELECT p from parent p WHERE p.class in (Child1, Child2) and p.phone_number = '1234'.
 
 When I try to run the query, I get the following exception:
 org.hibernate.QueryException: could not resolve property: class of: Child3
 
 Any help on what I'm doing wrong would be appreciated!
 
 Thanks,
 
 -john
 
 
 |