Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1073

Bug in Expression.toEJBQL with inExp/notInExp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M5
    • Core Library
    • None
    • Linux, ubuntu 8.04

    Description

      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.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            lmarchal@smaeur.com Laurent Marchal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: