users@glassfish.java.net

Re: _at_GeneratedValue(strategy = GenerationType.AUTO) throws exception

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 Sep 2007 16:33:16 PDT

My code is performing insert and delete operations but one after another and this shouldn't cause any problem. The exception is a "duplicate key entry exception" and my code doesn't create primary key (id) manually. I tried AUTO and TABLE mode but still having same problem.

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

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