users@glassfish.java.net

Re: getting null primary key

From: <glassfish_at_javadesktop.org>
Date: Fri, 31 Aug 2007 19:03:31 PDT

Do you populate the id yourself or is it generated by the provider? If it's the latter, try to call em.flush() before asking for id.

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

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