GenerationType strategy() default AUTO; String generator() default ""; } 其中GenerationType: 1 2 3 4 5 6 public enum GenerationType{ TABLE, SEQUENCE, IDENTITY, AUTO } JPA提供的四種標(biāo)準(zhǔn)用法為TABLE,SEQUENCE,IDENTITY,AUTO. TABLE:使用一個(gè)特定的數(shù)據(jù)庫表格來保存主鍵。 SEQUENCE:根據(jù)底層...
www.dbjr.com.cn/program/3178900...htm 2025-5-27