Skip to content

chore: JPA 초기 세팅 - #7

Merged
swonny merged 2 commits into
mainfrom
feat/jpa-setup
Jul 19, 2026
Merged

chore: JPA 초기 세팅#7
swonny merged 2 commits into
mainfrom
feat/jpa-setup

Conversation

@swonny

@swonny swonny commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

📌 작업 개요

Spring Data JPA 초기 세팅으로 데이터베이스 연동 기반을 구성합니다.

🔖 PR 유형

  • feat (기능 추가)
  • fix (버그 수정)
  • refactor (리팩토링)
  • docs (문서)
  • chore (설정, 빌드 등)

📝 변경 사항

  • kotlin.plugin.jpa, spring-boot-starter-data-jpa, postgresql, h2 의존성 추가
  • local / test 프로파일: H2 in-memory (PostgreSQL mode), DDL create-drop
  • dev / prod 프로파일: PostgreSQL, 환경변수 기반 datasource, DDL validate
  • BaseEntity: createdAt / updatedAt JPA Auditing 적용
  • JpaConfig: @EnableJpaAuditing 설정
  • .gitignore: .omc/ 추가

🔗 관련 이슈

✅ 테스트 / 확인 방법

  • local 프로파일로 애플리케이션 실행 후 http://localhost:8080/h2-console 접속 확인
  • H2 콘솔 JDBC URL: jdbc:h2:mem:momogo, 계정: sa / 비밀번호 없음

⚠️ 특이사항

  • 환경 변수 / 인프라 설정 변경 있음

dev / prod 환경에서 다음 환경변수 설정 필요:

변수명 설명
DB_HOST PostgreSQL 호스트
DB_PORT PostgreSQL 포트 (기본값: 5432)
DB_NAME 데이터베이스 이름
DB_USERNAME 데이터베이스 사용자
DB_PASSWORD 데이터베이스 비밀번호

💬 리뷰어에게

  • ddl-autodev / prod에서 validate로 설정했습니다.

🧹 셀프 체크리스트

  • 로컬에서 빌드 및 테스트 통과
  • 커밋 메시지가 Conventional Commits 규칙을 따름
  • 불필요한 코드/로그/주석 제거

- kotlin.plugin.jpa, spring-boot-starter-data-jpa, postgresql, h2 의존성 추가
- local/test 프로파일: H2 in-memory (PostgreSQL mode), DDL create-drop
- dev/prod 프로파일: PostgreSQL, 환경변수 기반 datasource, DDL validate
- BaseEntity: createdAt/updatedAt JPA Auditing
- JpaConfig: @EnableJpaAuditing 설정
- .gitignore: .omc/ 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@swonny
swonny requested a review from ddingmin as a code owner July 19, 2026 09:37
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown

🧪 테스트 결과

성공 실패 스킵
6 0 0

상세 테스트 결과 보기

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 151471ee33

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread build.gradle Outdated
@swonny
swonny merged commit 424845c into main Jul 19, 2026
2 checks passed
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