users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Fri, 31 Aug 2007 18:00:44 PDT

GenerationType.AUTO means the persistence provider is free to choose the strategy. If you are using TopLink Essentials which is the default in GlassFish, this strategy maps to GenerationType.TABLE (there is a way to make it a different type by setting some parameters).

Id doesn't matter which GenerationType you choose, the end result should be a unique key value.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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