Re: ExpressionFactory Usage?

From: Dave Merrin (dmerri..pasystems.co.uk)
Date: Thu Jan 08 2009 - 11:50:04 EST

  • Next message: Andrus Adamchik: "Re: ExpressionFactory Usage?"

    Cheer Andrus,

    I did as you suggested and gave the Expression.fromString() a try and
    this worked.

    I'm not onto v3 yet so I can't use EJBQLQuery.

    Dave

    Andrus Adamchik wrote:
    > "number1<=number2" means comparing two columns? ExpressionFactory
    > won't support it... IIRC even Expression.fromString() will not support
    > comparing two columns, instead expecting path vs value comparison
    > (worth a try though).
    >
    > EJBQLQuery on the other hand will support such comparison.
    >
    > Andrus
    >
    > On Jan 8, 2009, at 6:19 PM, Dave Merrin wrote:
    >
    >> Hi,
    >>
    >> I'm trying to create an expression that compares to fields in a
    >> single table i.e. number1<=number2. I'm using the ExpressionFactory
    >> to create all my expressions. Can I still use it to do create this
    >> expression?
    >>
    >> Cheers,
    >>
    >> Dave
    >>
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Jan 08 2009 - 11:54:00 EST