From: <MNe...@ta...> - 2003-04-30 15:45:56
|
Um, not sure. Unpack the jboss jar file and see if jbosscmp-jdbc_xml.xdt has <auto-increment> in it. It is in CVS and I do think it made it into beta 2... > -----Original Message----- > From: Mic...@ub... [mailto:Mic...@ub...] > Sent: Wednesday, April 30, 2003 9:58 AM > To: xdo...@li... > Subject: RE: [Xdoclet-user] Autoincrement in JBoss + MySQL > > > Will this work in 1.2b2? > > -----Original Message----- > From: MNe...@ta... [mailto:MNe...@ta...] > Sent: Wednesday, April 30, 2003 3:34 PM > To: xdo...@li... > Subject: RE: [Xdoclet-user] Autoincrement in JBoss + MySQL > > > /** > * > * @ejb.bean > * name="CompanyName" > * type="CMP" > * cmp-version="2.x" > * primkey-field="id" > * reentrant="false" > * > * @jboss.entity-command="get-generated-keys" // for JDK 1.4 > * @jboss.entity-command="mysql-get-generated-keys" // for > MYSQL JConnect 3+ > and JDK < 1.4 > */ > > public abstract class CompanyNameBean > implements EntityBean > { > /** > * @ejb.interface-method view-type="both" > * @ejb.persistence column-name="id" > * > * @jboss.persistence auto-increment="true" > */ > public abstract Integer getId (); > > /** > * @ejb.interface-method view-type="local" > */ > public abstract void setId (Integer id); > } > > > -----Original Message----- > > From: Oisin Kim [mailto:ois...@au...] > > Sent: Wednesday, April 30, 2003 6:01 AM > > To: xdo...@li... > > Subject: [Xdoclet-user] Autoincrement in JBoss + MySQL > > > > > > Hello all, > > > > Can anyone point me in the direction of somewhere which shows > > how to use > > the autoincrement feature in MySQL with JBoss for primary key > > generation. > > > > I've searched the archives and have seen it mentioned but > no where is > > anything like a full example. > > > > Any links help much appreciated! > > > > Thanks in advance, > > > > Oisin > > > > Oisin Kim > > > > Aurium > > Tel: +353 1 6611132 > > Fax: +353 1 6615200 > > e-mail: ois...@au... > > web site: http://www.aurium.net > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > xdoclet-user mailing list > > xdo...@li... > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > xdoclet-user mailing list > xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > Visit our website at http://www.ubswarburg.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or error-free > as information could be intercepted, corrupted, lost, destroyed, > arrive late or incomplete, or contain viruses. The sender therefore > does not accept liability for any errors or omissions in the contents > of this message which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > xdoclet-user mailing list > xdo...@li... > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > |