[
https://issues.apache.org/jira/browse/JDO-652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884572#action_12884572
]
Andy Jefferson commented on JDO-652:
------------------------------------
@Matthew, you open Eclipse (and set it up to have the annotation processor
enabled). You write a model class ("Person"). When pressing "Save" Eclipse will
attempt to compile it. Prior to compilation all files to be compiled that have
the required annotations (@PersistenceCapable) are passed to the annotation
processor(s). The annotation processor generates the equivalent query source
code (QPerson). The compiler then compiles all classes (model + query).
When compilation has finished the user starts to write a persistence class.
They can reference Person and QPerson since both are compiled classes.
> Provision of a statically-typed 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
> Fix For: JDO 3 maintenance release 1
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.