Skip to content

Conversation

@paragon0107
Copy link
Contributor

✨ Related Issue

📝 기능 구현 명세

  • 이곳에는 postman 테스트 결과를 넣어주세요

🐥 추가적인 언급 사항

QueryDsl을 도입해봤어요. 원래 도입 이유는 한번에 여러 도메인들을 불러올때 quertDsl을 사용하려고 도입을 했던건데 다 적용하고 보니까 생각했던것 만큼 필요가 없더라구여 근데 라이브러리 버전 때문에 querryDsl을 힘겹게 적용시켰던 터라 버리기 아까워서 나중에 적용할거 그냥 적용해버렷씁니다. ㅎㅎ..
앞으로 단일 도메인 조회는 JPA 여러 도메인을 join해서 한번에 불러올땐 QuerytDsl을 쓰도록 합시다

@paragon0107 paragon0107 added the enhancement New feature or request label Apr 6, 2025
@paragon0107 paragon0107 requested a review from Copilot April 6, 2025 16:25
@paragon0107 paragon0107 self-assigned this Apr 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/main/java/com/official/memento/schedule/scheduler/scheduleAlarmScheduler.java:18

  • Class name 'scheduleAlarmScheduler' should be capitalized (e.g. 'ScheduleAlarmScheduler') to adhere to Java naming conventions.
public class scheduleAlarmScheduler {

Comment on lines +45 to +47
GoogleCredentials credentials = GoogleCredentials.fromStream(
new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS")
));
Copy link

Copilot AI Apr 6, 2025

Choose a reason for hiding this comment

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

Consider using try-with-resources to safely manage the FileInputStream for GoogleCredentials, which will prevent potential resource leaks.

Suggested change
GoogleCredentials credentials = GoogleCredentials.fromStream(
new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS")
));
GoogleCredentials credentials;
try (FileInputStream fis = new FileInputStream(System.getenv("GOOGLE_APPLICATION_CREDENTIALS"))) {
credentials = GoogleCredentials.fromStream(fis);
}

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@unanchoi unanchoi left a comment

Choose a reason for hiding this comment

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

리뷰 남겼습니다.,

Comment on lines +84 to +88
//queryDsl
implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
annotationProcessor("com.querydsl:querydsl-apt:5.0.0:jakarta")
annotationProcessor ("jakarta.annotation:jakarta.annotation-api")
annotationProcessor ("jakarta.persistence:jakarta.persistence-api")
Copy link
Contributor

Choose a reason for hiding this comment

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

QueryDSL은 현재 OpenFeign에서 fork해서 계속 프로젝트 업데이트를 진행하고 있습니다~

https://github.com/OpenFeign/querydsl

해당 의존성을 사용하면 좋을 것 같아요.

Copy link
Contributor

@ksarangee ksarangee left a comment

Choose a reason for hiding this comment

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

QueryDSL 잘 몰랐는데 신기하네요 참고해서 공부하겠습니다~

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 스케줄 알람 관련 클라우드 태스크 부분 구현

4 participants