users@glassfish.java.net

Re: Creating a custom sequence generator for JTA/toplink

From: <glassfish_at_javadesktop.org>
Date: Tue, 25 Mar 2008 11:55:33 PST

> Can't use GenerationType.IDENTITY, because the id is
> not available at the
> the _before_ call em.persist().
>

Why do you need the id before calling em.persist()?

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

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