Sr No | Annotation | Explanation |
1 | @Getter | getter annotation is used to generate the get methods on Java entities. |
2 | @Setter | setter annotation is used to generate the set methods on Java entities. |
3 | @Data | Data annotation is the combination of @Setter (for non final fields) @Getter @ToString @NoArgsConstructor @RequiredArgsConstructor |
4 | @RequiredArgsConstructor | Generate a constructor with an argument for all fields that are marked as final or are marked as @NonNull and not initialized where they are declared. |
5 | @NonNull | |
6 | @NonArgsConstructor | |
7 | @AllArgsConstructor | |
8 | @Slf4j | |
9 | @Builder |