This content has been marked as final.
Show 1 reply
-
1. Re: Autoincrement DB2 JBOSS EJB CMP configuring
risenhoover Mar 26, 2007 4:13 PM (in response to grzesinfo)Hi there,
I don't know if I can answer your question exactly, but I can assure you that I've been using DB2 for about two years now, with hand-written JDBC code to do my inserts into tables with AUTO-INCREMENT, and I get DuplicateKeyExceptions all the frickin time.
I've actually had to hand-write exception handlers to catch any exceptions during inserts, check the cause, and if it's because of a duplicate key exception, perform a manual increment and re-insert the row.
I'm using DB2 v 8.