users@glassfish.java.net

Re: To INSERT a row where to specify the SEQUENCE name?

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Thu, 17 Jul 2008 11:11:27 -0700

Here are the instructions to auto generate primary keys with CMP
http://docs.sun.com/app/docs/doc/819-4734/beajq?a=view



glassfish_at_javadesktop.org wrote:
> Hi,
> Can anyone tell me where to specify the SEQUENCE name to generate the next sequence number before doing an INSERT?
>
> In weblogic we use <automatic-key-generation> to specify the sequence name to be used for an entity. Can anyone tell me what is the equivalent tag in Glassfish and which descriptor file?
>
> I'm working with EJB 2.
>
> Thanks in advance!
> [Message sent by forum member 'gjp' (gjp)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287353
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>