Skip to content

Comments

Main#105

Merged
jiminnimij merged 21 commits intodevelopfrom
main
Jan 24, 2026
Merged

Main#105
jiminnimij merged 21 commits intodevelopfrom
main

Conversation

@jiminnimij
Copy link
Member

#️⃣ 연관된 이슈

관련된 이슈 번호를 적어주세요. 예: #이슈번호

#️⃣ 작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요. (이미지 첨부 가능)

#️⃣ 테스트 결과

코드 변경에 대해 테스트를 수행한 결과를 요약해주세요. 예: 모든 테스트 통과 여부, 새로 작성한 테스트 케이스 등

#️⃣ 변경 사항 체크리스트

  • 코드에 영향이 있는 모든 부분에 대한 테스트를 작성하고 실행했나요?
  • 문서를 작성하거나 수정했나요? (필요한 경우)
  • 코드 컨벤션에 따라 코드를 작성했나요?
  • 본 PR에서 발생할 수 있는 모든 의존성 문제가 해결되었나요?

#️⃣ 스크린샷 (선택)

관련된 스크린샷이 있다면 여기에 첨부해주세요.

#️⃣ 리뷰 요구사항 (선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요.
예시: 이 부분의 코드가 잘 작동하는지 테스트해 주실 수 있나요?

📎 참고 자료 (선택)

관련 문서, 스크린샷, 또는 예시 등이 있다면 여기에 첨부해주세요

jiminnimij and others added 21 commits October 30, 2025 17:30
🚑 openjdk17 폐기로 인한 이미지 변경
🚑 충돌 해결 시 발생한 코드 중복 수정
[FIX] cors security에 적용
🚑 post 2개 이상인 경우 추가
🚑 if문 논리 오류 수정
bugfix : myreview exhibitionName
@jiminnimij jiminnimij merged commit ce3c538 into develop Jan 24, 2026
1 check passed
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jiminnimij, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 Exhibition 엔티티에 @Setter 어노테이션을 추가하여 해당 객체의 속성을 수정할 수 있도록 기능을 확장하고, CommentErrorCode 파일의 서식을 개선하는 변경 사항을 포함합니다. 이는 애플리케이션의 데이터 모델 유연성을 향상시키고 코드 가독성을 높이는 데 기여합니다.

Highlights

  • Exhibition 엔티티에 @Setter 추가: src/main/java/com/example/tikitaka/domain/exhibition/entity/Exhibition.java 파일에 Lombok의 @Setter 어노테이션이 추가되어 Exhibition 객체의 필드를 설정할 수 있게 되었습니다.
  • CommentErrorCode 파일 서식 변경: src/main/java/com/example/tikitaka/domain/comment/CommentErrorCode.java 파일에 가독성을 높이기 위해 두 줄의 공백이 추가되었습니다. 기능적인 변경은 없습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 Exhibition 엔티티에 @Setter를 추가하고 CommentErrorCode 파일의 서식을 정리하는 변경 사항을 포함합니다.

JPA 엔티티에 @Setter를 무분별하게 추가하는 것은 캡슐화를 해치고 객체의 일관성을 깨뜨릴 수 있어 일반적으로 권장되지 않습니다. 엔티티의 상태 변경은 비즈니스 로직을 포함하는 특정 메서드를 통해 이루어져야 합니다. 이에 대한 자세한 피드백을 Exhibition.java 파일에 남겼습니다.

또한, 불필요한 공백 라인을 제거하는 간단한 서식 수정에 대한 의견도 제시했습니다.


@Entity
@Getter
@Setter
Copy link
Contributor

Choose a reason for hiding this comment

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

high

JPA 엔티티에 @Setter를 사용하는 것은 객체의 캡슐화를 깨뜨릴 수 있어 신중해야 합니다. 엔티티의 상태는 외부에서 직접 변경하는 것이 아니라, 명확한 의도를 가진 비즈니스 메서드를 통해 변경하는 것이 좋습니다. 예를 들어, increaseScrapCount()와 같은 메서드는 좋은 예시입니다.

@Setter를 사용하면 ExhibitionServiceupdateExhibition 메서드처럼 어디서든 엔티티의 필드를 제약 없이 수정할 수 있게 되어, 객체의 일관성이 깨지거나 예기치 않은 버그가 발생할 수 있습니다.

@Setter를 제거하고, ExhibitionService에서 필요한 업데이트 로직을 Exhibition 엔티티 내의 메서드로 옮기는 것을 권장합니다. 이렇게 하면 Exhibition 엔티티가 자신의 상태 변경을 직접 제어하게 되어 더 견고하고 유지보수하기 좋은 코드가 됩니다.

예를 들어, Exhibition 엔티티에 다음과 같은 업데이트 메서드를 추가할 수 있습니다.

// In Exhibition.java
public void updateExhibitionName(String exhibitionName) {
    this.exhibitionName = exhibitionName;
}

public void updatePosterUrl(String posterUrl) {
    this.posterUrl = posterUrl;
}

// ... 다른 필드에 대한 업데이트 메서드들

그리고 ExhibitionService에서는 이 메서드들을 호출합니다.

// In ExhibitionService.java
// ... in updateExhibition method
updateIfPresent(request.getExhibitionName(), exhibition::updateExhibitionName);
updateIfPresent(request.getPosterUrl(), url -> exhibition.updatePosterUrl(s3UrlHandler.extractKeyFromUrl(url)));
// ...

이 방식은 각 필드 변경에 대한 명시적인 메서드를 제공하여 코드의 의도를 더 명확하게 만듭니다.

Comment on lines +22 to +23


Copy link
Contributor

Choose a reason for hiding this comment

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

medium

불필요한 공백 라인이 있습니다. 코드 가독성을 위해 제거하는 것이 좋습니다.

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