HRMS-Backend icon indicating copy to clipboard operation
HRMS-Backend copied to clipboard

feat: remove data annotation from entities

Open BBarisKilic opened this issue 2 years ago • 0 comments

For #1

See the following link:

  • Remove Data annotation
  • Add ToString annotation.
  • EqualsAndHashCode also can cause performance issues.
  • According to the JPA specification, all entity classes are required to have a public or protected no-argument constructor.

  • [ ] remove @Data annotation
  • [ ] remove @EqualsAndHashCode annotation
  • [ ] add @ToString(onlyExplicitlyIncluded = true) to entity classes
  • [ ] add not only @AllArgsConstructor annotation but also @NoArgsConstructor annotation to entity classes

BBarisKilic avatar Feb 14 '23 22:02 BBarisKilic