[ https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16789018#comment-16789018 ]
Michael Bouschen commented on JDO-652: -------------------------------------- I checked the LOG. The JDOQL string form is for a JDOQLTyped query is OK, it is the same as the JDOQL string based query. There is a difference in the result handling. The result class instance is created w/o an constructor argument: {{20:36:19,590 (main) DEBUG [DataNucleus.Query] - ResultObject of type org.apache.jdo.tck.query.api.Michael$EmpWrapper created with following constructor arguments: []}} Here is the corresponding output from the JDOQL string based query: {{20:36:19,021 (main) DEBUG [DataNucleus.Query] - ResultObject of type org.apache.jdo.tck.query.api.Michael$EmpWrapper created with following constructor arguments: [FullTimeEmployee(2, L., Craig, born 22/Dec/1975, phone \{work=123456-2, home=2222}, hired 1/Jul/2003, weeklyhours 40.0, $50000.0)]}} > Provision of a typesafe refactor-friendly query capability for JDOQL > -------------------------------------------------------------------- > > Key: JDO-652 > URL: https://issues.apache.org/jira/browse/JDO-652 > Project: JDO > Issue Type: New Feature > Components: api, specification, tck > Reporter: Andy Jefferson > Assignee: Michael Bouschen > Priority: Major > Fix For: JDO 3.2 > > Attachments: JDO-652-api-ifTheElse.txt, JDO-652-api-patch-Andy.txt, > JDO-652-patch4.txt, typesafe.patch, typesafe_manifest.patch > > > There are various querying capabilities of this type around. JPA2 has its > Criteria query API. Third party solutions like QueryDSL also exist, in its > case providing a JDOQL implementation (as well as JPQL, and HQL). We should > seriously consider introducing something along these lines in the JDO2.4 > timeframe. > There is a comparison of JPA Criteria with QueryDSL over at > http://source.mysema.com/forum/mvnforum/viewthread_thread,49 -- This message was sent by Atlassian JIRA (v7.6.3#76005)