[jira] Closed: (CAY-1073) Bug in Expression.toEJBQL with inExp/notInExp

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Tue Jun 10 2008 - 08:06:52 EDT

  • Next message: Lachlan Deck (JIRA): "[jira] Commented: (CAY-1073) Bug in Expression.toEJBQL with inExp/notInExp"

         [ https://issues.apache.org/cayenne/browse/CAY-1073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrus Adamchik closed CAY-1073.
    --------------------------------

           Resolution: Fixed
        Fix Version/s: 3.0

    > Bug in Expression.toEJBQL with inExp/notInExp
    > ---------------------------------------------
    >
    > Key: CAY-1073
    > URL: https://issues.apache.org/cayenne/browse/CAY-1073
    > Project: Cayenne
    > Issue Type: Bug
    > Components: Cayenne Core Library
    > Affects Versions: 3.0
    > Environment: Linux, ubuntu 8.04
    > Reporter: Laurent Marchal
    > Assignee: Andrus Adamchik
    > Fix For: 3.0
    >
    >
    > There is a bug transforming and expression containing an inExp/notInExp into EJBQL :
    > I create a expression filtering departments :
    > List<Short> departmentIds = new ArrayList<Short>(_departmentList.size());
    > for (Department department : _departmentList) {
    > departmentIds.add(department.getDepartmentId());
    > }
    >
    > return 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.

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Tue Jun 10 2008 - 08:08:22 EDT