You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Problem:
@Dataauto-generateshashCode()andtoString()that can trigger lazy collections, causing severe performance impacts orStackOverflowErrorin bidirectional relationships.Acceptance Criteria:
@Datawith@Getterand@SetteronUser,WorkoutPlan,WorkoutExercise, andExercise.equals()andhashCode()strictly based on the primary key or natural business keys if necessary.