Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in jpa annotation @tablegenerator, parameters like initialvalue and allocationsize is not working

 
Rosu Thomas
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am using @tablegenerator annotation for sequential generation of my primary key...i am using MySQL innodb engine........the problem is even if i set initial value = 1000 and allocation size = 100 i am getting id starting from 1,2,3...also next high value as 1.....please help me to find out whats the problem.
thanks and regards
 
Alexander Bondarev
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic