Skip to content

Remove Lombok @Data from Entities #5

Description

@viceda-s

Problem: @Data auto-generates hashCode() and toString() that can trigger lazy collections, causing severe performance impacts or StackOverflowError in bidirectional relationships.

Acceptance Criteria:

  • Replace @Data with @Getter and @Setter on User, WorkoutPlan, WorkoutExercise, and Exercise.
  • Only implement equals() and hashCode() strictly based on the primary key or natural business keys if necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance and persistencetech-debtTechnical Debt

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions