I don't think we allow for additional statements during the 'create-table' phase though.
You would be able to subclass the appropriate command to do issue a 'create sequence' as well though (sorry, the exact class name eludes me right now). > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Alex Loubyansky > Sent: Monday, March 03, 2003 11:13 AM > To: Steve Jones > Subject: Re: [JBoss-user] Creating a SQL sequence > > > Not in 3.0 branch. You need to upgrade to 3.2. > The you can make use of entity-commands (see > standardjbosscmp-jdbc.xml) It'll allow you to use database > generated values (mysql, informix, sybase, hsql), specify > custom sql statement to fetch new key value (this is for > sequences), provide JNDI name for key generator factory > (currently, only string UUID is available). > > alex > > Monday, March 03, 2003, 5:46:57 PM, Steve Jones wrote: > > SJ> Hi, > > SJ> I'm interested in creating a sequence in my DB at the > SJ> point of table creation by the CMP container. Is this > sort of thing > SJ> configurable? Or is there a class that could be subclassed to > SJ> implement this? > > SJ> I'm using JBoss 3.0.4. > > SJ> -- > SJ> Steve Jones <[EMAIL PROTECTED]> > > SJ> PGP: 1A98501A > SJ> fp: D695 6031 30F5 70E6 975F C876 1956 946C 1A98 501A > > SJ> "Real programmers don't write in BASIC. Actually, no programmers > SJ> write in BASIC after reaching puberty." > > > -- > Best regards, > Alex Loubyansky > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/j> boss-user > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user