Re: [JBoss-user] incrementing primary key in CMP

2002-05-22 Thread Michael Delamere
Thanks David! I love the first chapters already :-) Regards, Michael - Original Message - From: "David Ward" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:06 PM Subject: Re: [JBoss-user] incrementing primary key in CMP > Micha

Re: [JBoss-user] incrementing primary key in CMP

2002-05-22 Thread David Ward
Michael, Read chapter five of this (downloadable pdf) book: http://www.theserverside.com/books/EJBDesignPatterns/index.jsp It gives you a few options. You will need an account (it's free) at theserverside.com. Hope this helps, David -- Michael Delamere wrote: > Hi, > > Could someone please

[JBoss-user] incrementing primary key in CMP

2002-05-22 Thread Michael Delamere
Hi, Could someone please tell me what the best way is to increment an id in a table. Is this the job of the entity bean to get the max() value and then make the insert or how should this be done. Any help would be appreciated. Thanks, Michael