Hi all,
Wondering if anyone is familiar with this behavior:
Code:
query1 = "select from obj in class xxx.Login"
query2 = "select obj.customer.elements from obj in class xxx.Login where obj.id=xxx"
...
String query = param1;
Query q = s.createQuery(query);
Type[] returnTypes = q.getReturnTypes();
query1 works, query2 fails with "could not resolve property: elements of: xxx.Customer". It's dying in the query parser.
Any suggestions on a generalized solution that would provide for both forms of query are appreciated!