Hi Robert,
I used to do that by analyzing compiled expression tree:
query.getExpression(BaseContext.getThreadObjectContext().getEntityResolver())
... and so on
Regards,
Andrey
2010/7/20 Robert Zeigler <robert.zeigle..oxanemy.com>
> Is it possible to get the property names involved in an EJBQLQuery, eg,
> when the query returns type of Object[]?
>
> For instance:
>
> select m.firstName, m.lastName from Member m where...;
>
> I'd love to be able to programmatically analyze a query like the above to
> learn that the query is select the "firstName" and "lastName" properties. Is
> this possible?
>
> Robert
This archive was generated by hypermail 2.0.0 : Tue Jul 20 2010 - 04:55:54 UTC