Re: column/entity property names

From: Robert Zeigler (robert.zeigle..oxanemy.com)
Date: Tue Jul 20 2010 - 20:25:01 UTC

  • Next message: Andrew Willerding: "Re: Memory Leak?"

    Awesome, thanks; I was able to get exactly what I wanted out of expression, with a little digging.

    Robert

    On Jul 19, 2010, at 7/1911:54 PM , Andrey Razumovsky wrote:

    > 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 - 20:25:37 UTC