You need to use a sequence generator: @SequenceGenerator(name="mysequence", initialValue=1000) @GeneratedValue(strategy=GenerationType.
確定! 回上一頁