Re: Generating primary keys

2001-05-15 Thread Joni Suominen
AM To: Orion-Interest Subject: RE: Generating primary keys two ways of doing this... 1. map your ejb pk to another ejb. The counter.jar does this. It creates a long for every beantype. See the faq at www.orionserver.com http://www.orionserver.com . I think there is something under http

Generating primary keys

2001-05-14 Thread Sergei Batiuk
Hi mailing list, I have the following problem: the primary key for my EJB is generated at the database level ( a trigger ), so I don't want togenerate it in the ejbCreate() method. However, EJB specification says, that the use of the primary key isa MUST. Does anyone have the solution for

RE: Generating primary keys

2001-05-14 Thread elephantwalker
s, the elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergei BatiukSent: Monday, May 14, 2001 10:08 AMTo: Orion-InterestSubject: Generating primary keys Hi mailing list, I have the following problem: the primary key for m

RE: Generating primary keys

2001-05-14 Thread Jeff Schnitzer
-Interest Subject: RE: Generating primary keys two ways of doing this... 1. map your ejb pk to another ejb. The counter.jar does this. It creates a long for every beantype. See the faq at www.orionserver.com http://www.orionserver.com . I think there is something under http://www.orionsupport.com

Generating primary keys in CMP?

2000-04-25 Thread Anders Bengtsson
Hello, I'm looking for a way to generate primary keys for my container managed entity beans. For bean managed persistance you would simply use the functions that your DBMS provides, like sequences or auto-increased columns. But how do I do this with CMP beans? In books and example code

Re: Generating primary keys in CMP?

2000-04-25 Thread Joe Walnes
For bean managed persistance you would simply use the functions that your DBMS provides, like sequences or auto-increased columns. But how do I do this with CMP beans? In books and example code everyone avoids the subject entirely, with create(int id) as the creation method. Annoyingly enough,