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

From: Laurent Marchal (JIRA) ("Laurent)
Date: Tue Jun 10 2008 - 06:46:52 EDT

  • Next message: Andrus Adamchik (JIRA): "[jira] Commented: (CAY-1072) org.apache.cayenne.query.SQLResultSetMapping must implement java.io.Serializable"

    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

    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 - 06:47:15 EDT