[Chapter 08] @GeneratedValue(strategy=GenerationType.AUTO)
에 대한 의구점
#93
Answered
by
ahngilwoong
Irisation23
asked this question in
Chapter 08. Data Persistence
-
왜 Oracle은 시퀀스를 기반으로 매핑되는 것이며, MySQL은 아이덴티티를 기반으로 매핑되는 것일까? |
Beta Was this translation helpful? Give feedback.
Answered by
ahngilwoong
Oct 28, 2023
Replies: 2 comments
-
제 부서는 Oracle DB를 사용합니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Irisation23
-
질의 응답 이외의 CheckPoint
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
제 부서는 Oracle DB를 사용합니다.
Oracle DB는 MY SQL에 존재하는 AUTO_INCREMENT라는 기능이 없습니다.
그래서 오라클은 자동 키 생성 전략을 시퀀스라는 객체를 통하여 만들어 나가는 것으로 학습했습니다.
IDENTITY는 테이블에게 전략을 위임하는 건데
AUTO_INCREMENT가 테이블 단 동작이라고 합니다. 따라서 위의 두개가 나뉘는 것 같습니다.