-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Increment Primary key generator.
PostPosted: Mon Aug 01, 2005 1:17 am 
Newbie

Joined: Wed Dec 08, 2004 1:49 am
Posts: 4
I am using "Increment" Generator to generate Primary key, Things are working fine, But some time (randomly) my insert statement failed because of duplicate primary key. That means the "Increment" generator generate duplicate primary key.

any idea about this.

Your feed back is precious for me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 7:31 am 
Expert
Expert

Joined: Thu Dec 04, 2003 12:36 pm
Posts: 275
Location: Bielefeld, Germany
Chapter 6.1.4.1:
increment: generates identifiers of type long, short or int that are unique only when no other process is inserting data into the same table. Do not use in a cluster.

Best regards
Sven


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.