[ 
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.

Reply via email to