This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes SequenceGenerator contradictory initialValue & allocationSize Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "SequenceGenerator contradictory initialValue & allocationSize" Watch "SequenceGenerator contradictory initialValue & allocationSize" New topic
Author

SequenceGenerator contradictory initialValue & allocationSize

Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
[P-268]
For using a sequence generator, we need to follow the following steps :
a) CREATE SEQUENCE USER_SEQUENCE START WITH 1 INCREMENT BY 10;
b) @SequenceGenerator(name="USER_SEQUENCE_GENERATOR", sequenceName="USER_SEQUENCE",initialValue=3, allocationSize=4)

NOTE: The initialValue and allocationSize values are different in databaseSequence and SequenceGenerator.

What will happen in this case? Will it throw some error or Which initialValue & allocationSize value will be used ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SequenceGenerator contradictory initialValue & allocationSize
 
Similar Threads
Annotations from Hell
hibernate oracle sequence produces large gap
@TABLEGENERATOR doesn t work
Creating an JPA in eclipse
Generating PK