-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor: EntityListener 적용 및 Food Domain 리팩토링 #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생많으셨습니다:)
public class JpaAuditingConfig { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
새로운 클래스를 도입하셨군요!
return ResponseFoodDto.builder() | ||
.foodId(foodId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빌더패턴 적용하신다고 고생하셨습니다~!
|
||
public static ResponseScoreBestWorstDto of(double calorieScore, double carbohydrateScore, double proteinScore, double fatScore, double totalScore, List<ResponseSimpleFoodDto> best, List<ResponseSimpleFoodDto> worst) { | ||
public static ResponseScoreBestWorstDto of(double calorieScore, double carbohydrateScore, double proteinScore, double fatScore, double totalScore, List<ResponseFoodDto> best, List<ResponseFoodDto> worst) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SimpleFoodDto -> FoodDto로 바꾼 것 확인했습니다!
Field foodId = Food.class.getDeclaredField("id"); | ||
foodId.setAccessible(true); | ||
foodId.set(testFood, testFoodId); | ||
|
||
Field favoriteId = FavoriteFood.class.getDeclaredField("id"); | ||
favoriteId.setAccessible(true); | ||
favoriteId.set(testFavoriteFood, testFavoriteFoodId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 모르는 부분이 있었네요! 또 배워갑니다~!
Done
Next