Issue Details (XML | Word | Printable)

Key: JDO-223
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Watzek
Reporter: Michael Watzek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

SupportedMapMethods miss queries calling isEmpty() and size(). SupportedCollectionMethods must be extended by queries calling contains() and size().

Created: 24/Nov/05 08:18 PM   Updated: 29/Nov/05 07:40 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-223.patch 2005-11-26 12:55 AM Michael Watzek 15 kB

Resolution Date: 29/Nov/05 07:40 PM


 Description  « Hide
SupportedMapMethods must be extended by queries calling isEmpty() and size():

- SELECT FROM Person WHERE phoneNumbers.isEmpty()
- SELECT FROM Person WHERE phoneNumbers.size() == 2

SupportedCollectionMethods must be extended by queries calling contains() and size():

- SELECT FROM Department WHERE employees.contains(employee) PARAMETERS Employee employee
- SELECT FROM Department WHERE employees.size() == 3


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 26/Nov/05 12:55 AM
The attached patch fixes this issue.

Additionally, the classes have been adapted to the new result handling implemented as part of JDO-216.

Michael Bouschen added a comment - 28/Nov/05 05:52 PM
Looks good!

Michael Watzek added a comment - 29/Nov/05 07:40 PM
The patch has been checked in (Revision 349701).