Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Avaje Prisms in QueryBean APT #3528

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
rename processor
SentryMan committed Dec 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit eaa19e823ea5efce5b6edda530ffb6c9b411f9d5
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@
EmbeddablePrism.PRISM_TYPE,
ModuleInfoPrism.PRISM_TYPE
})
public class Processor extends AbstractProcessor implements Constants {
public class QueryBeanProcessor extends AbstractProcessor implements Constants {

private SimpleModuleInfoWriter moduleWriter;

2 changes: 1 addition & 1 deletion querybean-generator/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -8,6 +8,6 @@
requires static io.ebean.annotation;
requires static jakarta.persistence.api;

provides javax.annotation.processing.Processor with io.ebean.querybean.generator.Processor;
provides javax.annotation.processing.Processor with io.ebean.querybean.generator.QueryBeanProcessor;

}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
io.ebean.querybean.generator.Processor,aggregating
io.ebean.querybean.generator.QueryBeanProcessor,aggregating
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ void testGeneration() throws Exception {
List.of("--release=" + Integer.getInteger("java.specification.version")),
null,
files);
task.setProcessors(List.of(new Processor()));
task.setProcessors(List.of(new QueryBeanProcessor()));

assertThat(task.call()).isTrue();
}