Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.example.query;
- import java.lang.annotation.*;
- // Keep annotation in generated byte code
- @Retention(RetentionPolicy.RUNTIME)
- // Compiler hint: the annotation should be applied to fields only
- @Target(ElementType.FIELD)
- public @interface QueryField {
- // Custom field name in the generated query string
- public String name() default "";
- // If `true` the field value must be non-null
- public boolean required() default true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement