File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JPA Certification (OCEJPA) and the fly likes in jpa annotation @tablegenerator, parameters like initialvalue and allocationsize is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "in jpa annotation @tablegenerator, parameters like initialvalue and allocationsize is not working" Watch "in jpa annotation @tablegenerator, parameters like initialvalue and allocationsize is not working" New topic
Author

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

Rosu Thomas
Greenhorn

Joined: Jun 19, 2012
Posts: 17
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

Joined: Jan 04, 2012
Posts: 12
Can you post your code?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: in jpa annotation @tablegenerator, parameters like initialvalue and allocationsize is not working