feat: remove data annotation from entities
BBarisKilic opened this issue · 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