Bug in Expression.toEJBQL with inExpr

From: Laurent Marchal (lmarcha..maeur.com)
Date: Tue Jun 10 2008 - 06:49:20 EDT

  • Next message: Andrus Adamchik: "Re: Bug in Expression.toEJBQL with inExpr"

    Hi Andrus,

       I have tested with Cayenne 3.0M4 and there is a bug transforming an
    expression into EJBQL :
       I created a ticket : https://issues.apache.org/cayenne/browse/CAY-1073

    ExpressionFactory.notInExp(DailyJob.DEPARTMENT_ID_PROPERTY, departmentIds);

    ---> "SMASTER.DEPTID not in (1, 2)"

    Then i transform it to EJBQL with Expression.toEJBQL("a")

    ---> "a.departmentId not in ()"

    the IN clause is empty.

    Thanks.
    Laurent Marchal.



    This archive was generated by hypermail 2.0.0 : Tue Jun 10 2008 - 06:49:53 EDT