用下面的配置可以让自动创建的sequence名字为GroupSEQ_DB, 每次增加1(allocationSize=1),g不指定的话是每次默认是50。
@Entity @SequenceGenerator(name="GroupSEQ",sequenceName="GroupSEQ_DB",allocationSize=1) public class UserGroup {
select GROUPSEQ_DB.nextval from dual;
@Entity @SequenceGenerator(name="GroupSEQ",sequenceName="GroupSEQ_DB",allocationSize=1) public class UserGroup {