728x90 table1 [JPA] @GeneratedValue - TABLE TABLE- 키 생성 전용 테이블을 하나 만들어 DB 시퀀스를 흉내내는 전략- @TableGenerator 필요 - 장점 : 모든 DB에 적용 가능- 단점 : 성능create table MY_SEQUENCES ( sequence_name varchar(255) not null, next_val bigint, primary key ( sequence_name )) @Entity@TableGenerator( name = "MEMBER_SEQ_GENERATOR", table = "MY_SEQUENCES", pkColumnValue = "MEMBER_SEQ", allocationSize = 1)class Member { @Id @GeneratedValue(strategy = GenerationType.TA.. 2025. 1. 3. 이전 1 다음 728x90