users@glassfish.java.net

Re: MySQLIntegrityConstraintViolationException - on load...any suggestion??

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Nov 2007 17:07:40 PST

How can I automate this process. For example, GenerationType.AUTO creates and uses SEQUENCE table in Mysql automatically, however creates duplicate keys on load test. Where as to use GenerationType.IDENTITY, i have to manually add AUTO_INCREMENT option for each database table. Is there any way to automate this process so that manual database changes can be omitted.

Regards.
[Message sent by forum member 'server_user' (server_user)]

http://forums.java.net/jive/thread.jspa?messageID=244662