Skip to content

[Chapter 08] @GeneratedValue(strategy=GenerationType.AUTO) 에 대한 의구점 #93

Discussion options

You must be logged in to vote

제 부서는 Oracle DB를 사용합니다.
Oracle DB는 MY SQL에 존재하는 AUTO_INCREMENT라는 기능이 없습니다.
그래서 오라클은 자동 키 생성 전략을 시퀀스라는 객체를 통하여 만들어 나가는 것으로 학습했습니다.
IDENTITY는 테이블에게 전략을 위임하는 건데
AUTO_INCREMENT가 테이블 단 동작이라고 합니다. 따라서 위의 두개가 나뉘는 것 같습니다.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Irisation23
Comment options

Irisation23
Oct 29, 2023
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chapter08 데이터 영속성
2 participants