-->
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.  [ 1 post ] 
Author Message
 Post subject: Using Hibernate Identity Generator and Manual Insert
PostPosted: Sun Jul 14, 2013 10:01 pm 
Newbie

Joined: Sun Jul 14, 2013 9:53 pm
Posts: 1
Hi,

I am using hibernate identity generator for a db2 table. The same db2 table is getting updated via manual insert from another batch program.

The batch program used "max(primary key column) + 1" to insert in the table. After i insert using the manual query, the hibernate insert is throwing me "Index Constraint. No two rows can have same value". But when i try to insert again using the hibernate insert for the second time, its working.

Please let me know why the first hibernate insert is not working.

Any help is much appreciated.


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.