Skip to content

[TMO-62] 상대방 프로필 및 여행 로그 구현#229

Merged
yuuuja merged 14 commits intodevelopfrom
feature/TMO-62
Apr 20, 2025
Merged

[TMO-62] 상대방 프로필 및 여행 로그 구현#229
yuuuja merged 14 commits intodevelopfrom
feature/TMO-62

Conversation

@yuuuja
Copy link
Copy Markdown
Member

@yuuuja yuuuja commented Apr 16, 2025

🔗 Issue Number

연관된 이슈 번호를 기입해주세요.
ex) #이슈번호, #이슈번호

PR 유형

  • 새로운 기능 추가
  • 버그 수정
  • 코드 리팩토링
  • 테스트 코드 변경 사항
  • 빌드 또는 패키지 매니저 수정
  • 파일 또는 디렉토리 변경 사항

📝 작업 내용

해당 PR에서 작업한 내용을 설명해주세요.
결과 화면 등 자유롭게 이미지를 첨부해도 좋아요

🔖 리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

✅ PR Check List

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?

@yuuuja yuuuja merged commit 5d61b47 into develop Apr 20, 2025
1 check passed
@yuuuja yuuuja self-assigned this Apr 20, 2025
Copy link
Copy Markdown
Contributor

@DoyoubK DoyoubK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생 많으셨습니다! 제가 리뷰를 너무 늦게 했네요 ㅠ

this.jdbcTemplate = jdbcTemplate;
}

public void addCountry(Country country) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거는 JPA 안쓰시고 JDBC 쓰신 이유가 있으실까요?


private final String description;

public static Continent fromString(String value) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 호출 빈도가 높으면 메모리 사용량이 꽤 될거같아서, String - Continent 쌍으로 Map 저장해도 좋을거같아요!

Comment on lines +24 to +26
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "country_id", nullable = false)
private Country country;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요건 개인적인 선호도인데... Join 을 명시적으로 안하고 코드 레벨에서 관리하면 어떨까 싶습니다. 회의할때 의견 나눠보시죵

Comment on lines +102 to +103
Users user = userRepository.findUserWithTags(userNumber)
.orElseThrow(() -> new IllegalArgumentException("사용자를 찾을 수 없습니다."));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거랑 위 calculateVisitedCountryCount 랑 순서 변경해야 안전할 듯 합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants