You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by "Andrus Adamchik (JIRA)" <de...@cayenne.apache.org> on 2008/06/10 14:06:52 UTC

[jira] Closed: (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.