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 <[email protected]>

> 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

Reply via email to