Skip to content
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

JPA 설정 #1

Open
suna-ji opened this issue Dec 4, 2024 · 0 comments
Open

JPA 설정 #1

suna-ji opened this issue Dec 4, 2024 · 0 comments
Assignees
Labels
JPA JPA

Comments

@suna-ji
Copy link
Owner

suna-ji commented Dec 4, 2024

JPA 관련 설정

ddl-auto 옵션

  • create : 애플리케이션 시작 시 스키마를 새로 생성 (기존 데이터 삭제)
  • update : 엔티티 변경 시 기존 스키마를 업데이트
  • validate : 스키마를 확인하지만 변경하지 않음
  • none : hibernate가 스키마에 관여하지 않음 (권장)

개발 단계에서는 update를, 운영 환경에서는 validate나 none을 사용하는 것이 좋다.

dialect 옵션
hibernate가 사용하는 SQL 방언을 지정

@suna-ji suna-ji added the JPA JPA label Dec 4, 2024
@suna-ji suna-ji self-assigned this Dec 4, 2024
suna-ji added a commit that referenced this issue Dec 21, 2024
@suna-ji suna-ji changed the title JPA JPA 설정 Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JPA JPA
Projects
None yet
Development

No branches or pull requests

1 participant