db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-321) Add test queries accessing a public static final field declared in a company model class
Date Thu, 02 Mar 2006 21:21:06 GMT
     [ http://issues.apache.org/jira/browse/JDO-321?page=all ]

Michael Bouschen updated JDO-321:
---------------------------------

    Attachment: JDO-321.patch

Attached you find aptach JDO-321.patch for review. It adds a public static final field to
class Department and three new query test cases to class IdentifiersEqualFieldNames using
the constant.

Please note, JPOX currently does not support using the public static final w/o class qualification:
  SELECT FROM org.apache.jdo.tck.pc.company.Department WHERE employees.size() > RECOMMENDED_NO_OF_EMPS
It runs into the following error:
1) testPositive(org.apache.jdo.tck.query.jdoql.IdentifiersEqualFieldNames)org.jpox.store.expression.ScalarExpression$IllegalOperationException:
Cannot perform operation ">" on ContainerSizeExpression "(SELECT COUNT(*) FROM applicationidentity0.PERSONS
THIS_EMPLOYEES WHERE THIS_EMPLOYEES.DEPARTMENT = THIS.ID)" and UnboundVariable

> Add test queries accessing a public static final field declared in a company model class
> ----------------------------------------------------------------------------------------
>
>          Key: JDO-321
>          URL: http://issues.apache.org/jira/browse/JDO-321
>      Project: JDO
>         Type: Test
>   Components: tck20
>     Versions: JDO 2 rc1
>     Reporter: Michael Bouschen
>     Assignee: Michael Bouschen
>     Priority: Minor
>      Fix For: JDO 2 final
>  Attachments: JDO-321.patch
>
> I propose to add new test queries to query test class query.jdoql.IdentifiersEqualFieldNames
accessing a public static final field declared in a company model class, e.g add the following
constant to class Department:
>   public static final int RECOMMENDED_NO_OF_EMPS = 2

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message