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