Re: [JBoss-user] create(), ejbCreate() and id

2001-06-26 Thread Nicolai P Guba
> "Af" == Allen fogleson <[EMAIL PROTECTED]> writes: Af> if not db independent. I freely admit we do this all the time. we Af> dont do it in the ejbCreate... we do it before calling create, but Af> same difference. recently i had to write some components (really Af> a set of beans/tags/jsps)

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread Allen fogleson
more difficult :) Al - Original Message - From: danch (Dan Christopherson) <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 10:06 AM Subject: Re: [JBoss-user] create(), ejbCreate() and id > You can in limited ways: you're quite free to get a val

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread danch (Dan Christopherson)
Konstantin Priblouda wrote: >> > > Which voids the very idea of CMP :) > Why do I need it ( CMP ), if I still have to obtain > connection and call something on database backend > myself? > This is one call, and it has the tremendous advantage that it will work. You're still not writing separa

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread Konstantin Priblouda
--- "danch (Dan Christopherson)" <[EMAIL PROTECTED]> wrote: > Jay Walters wrote: > > > > > One rub is that you in general cannot use these > features with CMP beans > > because JAWS doesn't support it. > > > You can in limited ways: you're quite free to get a > value from a > sequence (Pos

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread danch (Dan Christopherson)
Jay Walters wrote: > > One rub is that you in general cannot use these features with CMP beans > because JAWS doesn't support it. You can in limited ways: you're quite free to get a value from a sequence (Postgres or Oracle) within your ejbCreate code. I believe this is generally a pretty

RE: [JBoss-user] create(), ejbCreate() and id

2001-06-25 Thread Jay Walters
is database specific. Cheers Jay -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 23, 2001 11:49 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] create(), ejbCreate() and id Hi, On 2001.06.23 18:11:57 -0400 [EMAIL PROTECTED] wrote: > On Sat, Jun 23, 2

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread David Jencks
Hi, On 2001.06.23 18:11:57 -0400 [EMAIL PROTECTED] wrote: > On Sat, Jun 23, 2001 at 11:25:32AM -0700, Konstantin Priblouda wrote: > > > > > This interests me. I will be doing a project where I > > > don't care much > > > what the primary keys are, only that they are there > > > and are unique >

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread bcd
On Sat, Jun 23, 2001 at 11:25:32AM -0700, Konstantin Priblouda wrote: > > > This interests me. I will be doing a project where I > > don't care much > > what the primary keys are, only that they are there > > and are unique > > (obviously). Ideally, I would have the database > > autogenerate a >

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread Konstantin Priblouda
> This interests me. I will be doing a project where I > don't care much > what the primary keys are, only that they are there > and are unique > (obviously). Ideally, I would have the database > autogenerate a > sequence of numbers, but there doesn't seem to be a > way to get the > Container to

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread bcd
On Sat, Jun 23, 2001 at 09:58:12AM -0700, Konstantin Priblouda wrote: > > Your EJB shall have primary key. ( and it could be > whatever field you like ). On creation of your EJB > you have to generate this key yourself. > > I use an separate bean as sequence generator. This interests me. I wil

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread Vinay Menon
Must add that you should be able to create Entity Beans without primary keys as well. As to what data they represent is obvious hence.   Vinay   - Original Message - From: Konstantin Priblouda Sent: Saturday, June 23, 2001 6:00 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] create(), e

Re: [JBoss-user] create(), ejbCreate() and id

2001-06-23 Thread Konstantin Priblouda
> In a CD tutorial example I do not understand the > role of id parameter in ejbCreate(String) method and > who supplies this string and how. Is it the way EJB > provides unique field for easy primary key > implementation? Should I necessarily have such a > field name in my > bean and should I im

[JBoss-user] create(), ejbCreate() and id

2001-06-22 Thread Boris Garbuzov
In a CD tutorial example I do not understand the role of id parameter in ejbCreate(String) method and who supplies this string and how. Is it the way EJB provides unique field for easy primary key implementation? Should I necessarily have such a field name in my bean and should I implement ejbC