The @Data annotation is kind of an all in one package. It is equivalent to adding the annotations @Getter @Setter @RequiredArgsConstructor @ToString @EqualsAndHashCode to your class.