Oracle 시퀀스를 JPA의 EntityBean에 맵핑하기

@GeneratedValue(strategy=GenerationType.SEQUENCE, generator = “MYNOTIFSEQ”) @SequenceGenerator(name=”MYNOTIFSEQ”, sequenceName = “MY_SEQ”) Oracle의 시퀀스는 아래와 같다.

CREATE SEQUENCE MY_SEQ INCREMENT BY 1 START WITH 1 MINVALUE 1 MAXVALUE 999999999999999999 NOORDER CACHE 20 CYCLE
]]>

Related Posts