添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

@SequenceGenerator generating wrong sequence numbers on an Oracle database

dark_light_555 Nov 15 2010 — edited Nov 19 2010
Hello,
I have a JPA entity with the following annotation:
@SequenceGenerator(name = "PERS_GEN", sequenceName = "PERS_SEQ", initialValue = 1, allocationSize = 1)
But the ids created by this sequence are not incrementing one by one;they increment 20 by 20. What is the cause of this?And how can it be sold?