I figured it out. I just needed to replace @Data with @Getter and @Setter and I didn't needed to override equals(), hashcode() or toString().
@Data
@Getter
@Setter
equals()
hashcode()
toString()