From: <Mic...@ub...> - 2003-04-30 11:11:24
|
I am not sure if MySql has this feature, but there is a J2EE pattern = about using a SessionBean to increment numbers so they are increasing. = But autoincrement and this pattern do not gaurantee no-gaps in the = numbering. If that is a requirement, then you may find some serious = issues, but it can be done, but might cost you performance. But, for PK generation, there is always the GUID generator: http://xdoclet.sourceforge.net/bp.html I have just started playing with this today, so don't know heaps about = it. -----Original Message----- From: Oisin Kim [mailto:ois...@au...] Sent: Wednesday, April 30, 2003 12:01 PM 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=20 ------------------------------------------------------- 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. |