Issue Details (XML | Word | Printable)

Key: JDO-177
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

JPOX ignores JDOHelper.getObjectId in queries.

Created: 07/Oct/05 12:59 AM   Updated: 28/Nov/05 11:42 PM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 28/Nov/05 11:42 PM


 Description  « Hide
JPOX ignores JDOHelper.getObjectId in queries. This bug may be reproduced applying patch JDO-159. The following query returns instances of FullTimeEmployee instead of objectid instances:

SELECT JDOHelper.getObjectId(this) FROM org.apache.jdo.tck.pc.company.Person


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Watzek added a comment - 17/Oct/05 05:45 PM
Component set to tck20.

Michael Watzek made changes - 17/Oct/05 05:45 PM
Field Original Value New Value
Component/s tck20 [ 11652 ]
Repository Revision Date User Message
ASF #348953 Fri Nov 25 13:53:12 UTC 2005 brazil Bug fix related to JDO-177.
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java

Repository Revision Date User Message
ASF #348968 Fri Nov 25 15:41:41 UTC 2005 brazil Bug fix related to JDO-177.
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java

Repository Revision Date User Message
ASF #348971 Fri Nov 25 15:46:45 UTC 2005 brazil Bug fix related to JDO-177.
Files Changed
MODIFY /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/jdoql/methods/SupportedJDOHelperMethods.java

Andy Jefferson added a comment - 25/Nov/05 05:36 PM
To be explicit, this only relates to queries where JDOHelper.getObjectId(this) is in the result clause. When it is in the filter clause all works fine.

Andy Jefferson made changes - 25/Nov/05 09:14 PM
Assignee Erik Bengtson [ ebengtso ] Andy Jefferson [ andy ]
Andy Jefferson added a comment - 25/Nov/05 09:45 PM
JPOX CVS has been updated to support JDOHelper.getObjectId in the result clause. It now shows up an error in the test. The second query is trying to use a filter of "personid = 1", where it should be "personid == 1"

Andy Jefferson made changes - 25/Nov/05 09:45 PM
Assignee Andy Jefferson [ andy ] Michael Watzek [ mwa ]
Michael Watzek added a comment - 28/Nov/05 11:42 PM
The fix has been checked in.

Michael Watzek made changes - 28/Nov/05 11:42 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]