db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@datanucleus.org>
Subject Re: Minutes: JDO TCK Conference Call Friday, Apr 15, 9 am Pacific Time
Date Tue, 19 Apr 2011 18:22:10 GMT
> 1. Typesafe queries for JDOQL
> The DN preprocessor only seems to process classes that have  
> annotations. Is this the intent? Many JDO classes only have persistent  
> metadata in the .jdo xml files, and these classes seem to be skipped.
> Craig's understanding is that the pre-processor should be able to  
> process classes even with no annotations at all. The decision as to  
> which classes to process should be taken by the processor itself, not  
> the javac that invokes it. But this is just intuition.
Whilst an **Annotation**Processor (hint: the name, and its package) could 
define the line
and hence, in principle, be visited for all classes being compiled, current 
application is for the same area of application as JPA Criteria. That is for 
classes annotated as persistent (Criteria annotation processors for Hibernate 
and OpenJPA both seem to do the same as DataNucleus here - i.e only handle the 
specific annotations for the persistence spec in use).

DataNucleus is obviously Apache 2 licensed and open to contributions from 
anyone willing to participate (like it and JPOX have been since 2003). To that 
end if anyone wanted to provide an annotation processor that did search for 
XML files (using the above @SupportedXXX line), parse the XML file, and then 
generate the "query" class, then this would be gratefully received :-)

DataNucleus (http://www.datanucleus.org)

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message