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

qexclude #3

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE}) //on class field
public @interface QExcludeClass {
public @interface QExclude {
}
2 changes: 0 additions & 2 deletions src/main/java/it/ness/queryable/model/QLikeFilterDef.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public QLikeFilterDef(final Log log, final StringUtil stringUtil) {
public void addAnnotationToModelClass(JavaClassSource javaClass) {
// remove existing annotation with same filtername
removeFilterDef(javaClass, filterName);

filterName = prefix + "." + name;
AnnotationSource<JavaClassSource> filterDefAnnotation = javaClass.addAnnotation();
filterDefAnnotation.setName("FilterDef");
filterDefAnnotation.setStringValue("name", filterName);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/it/ness/queryable/util/ModelFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void resolveConstant() {
// override if annotation is present
try {
JavaClassSource javaClass = Roaster.parse(JavaClassSource.class, new File(path, fileName));
AnnotationSource<JavaClassSource> a = javaClass.getAnnotation("QExcludeClass");
AnnotationSource<JavaClassSource> a = javaClass.getAnnotation("QExclude");
if (null != a) {
excludeClass = true;
}
Expand Down