mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
#804433 : fixed claiming of annotations
This commit is contained in:
parent
d3fccc4f1e
commit
a26f327c2d
@ -34,6 +34,8 @@ import com.mysema.query.annotations.QueryTransient;
|
||||
@SupportedAnnotationTypes({"com.mysema.query.annotations.*"})
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
public class QuerydslAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
private static final Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS = Boolean.FALSE;
|
||||
|
||||
@Override
|
||||
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
|
||||
@ -50,7 +52,7 @@ public class QuerydslAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
Processor processor = new Processor(processingEnv, roundEnv, configuration);
|
||||
processor.process();
|
||||
return true;
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ import com.mysema.query.apt.jpa.JPAAnnotationProcessor;
|
||||
@SupportedAnnotationTypes({"com.mysema.query.annotations.*","javax.persistence.*", "org.hibernate.annotations.*"})
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
public class HibernateAnnotationProcessor extends JPAAnnotationProcessor{
|
||||
|
||||
|
||||
@Override
|
||||
protected DefaultConfiguration createConfiguration(RoundEnvironment roundEnv) throws ClassNotFoundException {
|
||||
return new HibernateConfiguration(roundEnv, processingEnv.getOptions(), entity, superType, embeddable, embedded, skip);
|
||||
|
||||
@ -32,6 +32,8 @@ import com.mysema.query.apt.Processor;
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
public class JDOAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
private static final Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS = Boolean.FALSE;
|
||||
|
||||
private static final Set<String> KEYWORDS = new HashSet<String>(Arrays.asList(
|
||||
"AS","ASC", "ASCENDING","AVG",
|
||||
"BY","COUNT", "DESC","DESCENDING",
|
||||
@ -55,7 +57,7 @@ public class JDOAnnotationProcessor extends AbstractProcessor{
|
||||
configuration.setUseGetters(false);
|
||||
Processor processor = new Processor(processingEnv, roundEnv, configuration);
|
||||
processor.process();
|
||||
return true;
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new APTException(e.getMessage(), e);
|
||||
|
||||
@ -30,6 +30,8 @@ import com.mysema.query.apt.Processor;
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
public class JPAAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
private static final Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS = Boolean.FALSE;
|
||||
|
||||
protected Class<? extends Annotation> entity, superType, embeddable, embedded, skip;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -46,7 +48,7 @@ public class JPAAnnotationProcessor extends AbstractProcessor{
|
||||
DefaultConfiguration configuration = createConfiguration(roundEnv);
|
||||
Processor processor = new Processor(processingEnv, roundEnv, configuration);
|
||||
processor.process();
|
||||
return true;
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
|
||||
} catch (ClassNotFoundException e) {
|
||||
throw new APTException(e.getMessage(), e);
|
||||
|
||||
@ -35,6 +35,8 @@ import com.mysema.query.mongodb.Point;
|
||||
@SupportedSourceVersion(SourceVersion.RELEASE_6)
|
||||
public class MorphiaAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
private static final Boolean ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS = Boolean.FALSE;
|
||||
|
||||
private Class<? extends Annotation> entities, entity, embedded, skip;
|
||||
|
||||
@Override
|
||||
@ -52,7 +54,7 @@ public class MorphiaAnnotationProcessor extends AbstractProcessor{
|
||||
|
||||
Processor processor = new Processor(processingEnv, roundEnv, configuration);
|
||||
processor.process();
|
||||
return true;
|
||||
return ALLOW_OTHER_PROCESSORS_TO_CLAIM_ANNOTATIONS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user