cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Re: column/entity property names
Date Tue, 20 Jul 2010 04:54:12 GMT
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.zeigler@roxanemy.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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message