Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove data annotation from entities #3

Open
4 tasks
BBarisKilic opened this issue Feb 14, 2023 · 0 comments
Open
4 tasks

feat: remove data annotation from entities #3

BBarisKilic opened this issue Feb 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BBarisKilic
Copy link
Owner

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 BBarisKilic added the enhancement New feature or request label Feb 14, 2023
@BBarisKilic BBarisKilic self-assigned this Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant