[ 
https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16702351#comment-16702351
 ] 

Tilmann Zäschke commented on JDO-652:
-------------------------------------

I simplified the problem a bit: Creating a simple class such as

 
{code:java}
package org.apache.jdo.tck.pc.query;

import java.util.Optional;
import javax.jdo.annotations.PersistenceCapable;

@PersistenceCapable
public class OptionalSample2 {
    long id;
    Optional<String> optionalString;
}{code}
will cause {{mvn clean install}} to fail:

 
{code:java}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) 
on project jdo-tck: Compilation failure: Compilation failure:
[ERROR] 
\projects\workspace-zoo\JDO-trunk-commit\trunk\tck\target\generated-sources\annotations\org\apache\jdo\tck\pc\query\QOptionalSample2.java:[39,74]
 error: cannot find symbol
[ERROR] 
\projects\workspace-zoo\JDO-trunk-commit\trunk\tck\target\generated-sources\annotations\org\apache\jdo\tck\pc\query\QOptionalSample2.java:[46,74]
 error: cannot find symbol{code}
@[~andy]: This appears to be a problem with Datanucleus (5.2.0-m2 / 
dn-jdo-query-5.0.9). Would you mind having a look?

 

 

> 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)

Reply via email to