[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Autoincrement DB2 JBOSS EJB CMP configuring

risenhoover do-not-reply at jboss.com
Mon Mar 26 16:13:16 EDT 2007

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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031771#4031771

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031771

More information about the jboss-user mailing list