users@glassfish.java.net

Re: JPA Generated Values issue

From: <glassfish_at_javadesktop.org>
Date: Fri, 17 Aug 2007 11:18:37 PDT

What you are seeing here 'effectivly' is re-deployment every time the EMF goes out of scope and is garbage collected. Keep the EMF in a static variable or create multiple EntityManagers in each method and you will see that sequences are shared amoung EntityManagers.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

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