Skip to content

Commit 1b5e066

Browse files
authored
#3654 Fix querybean-generator compiler warning for unclaimed annotations (#3655)
warning: No processor claimed any of these annotations: /io.ebean.typequery.TypeQueryBean,/io.ebean.typequery.Generated This fix is required when the compiler is run with -Werror specified An alternative workaround is to use compiler arg -Xlint:-processing rather than -Xlint:all
1 parent 104e4ec commit 1b5e066

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/Constants.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ interface Constants {
55
String AT_GENERATED = "@io.ebean.typequery.Generated(\"io.ebean.querybean.kotlin-generator\")";
66
String AT_TYPEQUERYBEAN = "@io.ebean.typequery.TypeQueryBean(\"v1\")";
77

8+
String GENERATED = "io.ebean.typequery.Generated";
9+
String TYPEQUERYBEAN = "io.ebean.typequery.TypeQueryBean";
10+
811
String MAPPED_SUPERCLASS = "jakarta.persistence.MappedSuperclass";
912
String DISCRIMINATOR_VALUE = "jakarta.persistence.DiscriminatorValue";
1013
String INHERITANCE = "jakarta.persistence.Inheritance";

kotlin-querybean-generator/src/main/java/io/ebean/querybean/generator/Processor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public Set<String> getSupportedAnnotationTypes() {
4949
annotations.add(CONVERTER);
5050
annotations.add(EBEAN_COMPONENT);
5151
annotations.add(MODULEINFO);
52+
annotations.add(TYPEQUERYBEAN);
53+
annotations.add(GENERATED);
5254
return annotations;
5355
}
5456

querybean-generator/src/main/java/io/ebean/querybean/generator/Constants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ interface Constants {
44

55
String AT_GENERATED = "@io.ebean.typequery.Generated(\"io.ebean.querybean.generator\")";
66
String AT_TYPEQUERYBEAN = "@io.ebean.typequery.TypeQueryBean(\"v1\")";
7+
String TYPEQUERYBEAN = "io.ebean.typequery.TypeQueryBean";
78
String GENERATED = "io.ebean.typequery.Generated";
89

910
String ONE_TO_MANY = "jakarta.persistence.OneToMany";

querybean-generator/src/main/java/io/ebean/querybean/generator/Processor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public Set<String> getSupportedAnnotationTypes() {
3636
annotations.add(CONVERTER);
3737
annotations.add(EBEAN_COMPONENT);
3838
annotations.add(MODULEINFO);
39+
annotations.add(TYPEQUERYBEAN);
40+
annotations.add(GENERATED);
3941
return annotations;
4042
}
4143

0 commit comments

Comments
 (0)