Re: SV: [JBoss-user] CMP and PK
Hi, now we are close: go to the archive and read hundreds of postings on autonumbering, pk generation, et al! Usually create a session-bean that encapsulates your DB number-generatio procedure, CMP CAN NOT ISSUE PKs!!! Burkhard - Original Message - From: "Max Krainov" <[EMAIL PROTECTED]> To: "Burkhard Vogel" <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 12:41 PM Subject: Re: SV: [JBoss-user] CMP and PK > Hello! > Recently (12.07.2001 14:38) you wrote: > >> LP> what do you mean by 'count the value' ? > >> I mean the value of the Primary Key if it is Integer, not a > >> composite key. > BV> what do you want to COUNT??? > Ok,I'llsay another word: not to "count" but to > "generate". I was interested how to generate a unique primary > key for the CMP Entity Bean like in Oracle (sequence.NEXTVAL). > > -- > Sincerely yours, Max > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: [JBoss-user] CMP and PK
Hello! Recently (12.07.2001 14:38) you wrote: >> LP> what do you mean by 'count the value' ? >> I mean the value of the Primary Key if it is Integer, not a >> composite key. BV> what do you want to COUNT??? Ok,I'llsay another word: not to "count" but to "generate". I was interested how to generate a unique primary key for the CMP Entity Bean like in Oracle (sequence.NEXTVAL). -- Sincerely yours, Max ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: [JBoss-user] CMP and PK
Still, what do you want to COUNT??? Burkhard - Original Message - From: "Max Krainov" <[EMAIL PROTECTED]> To: "Lennart Petersson" <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 6:17 AM Subject: Re: SV: [JBoss-user] CMP and PK > Hello! > Recently (11.07.2001 19:12) you wrote: > >> I have another simple question: when I make a CMP Entity Bean > >> with the PK of type Integer, do I need to count the value of this > >> PK in an ejbCreate() methos of the Bean class? > LP> what do you mean by 'count the value' ? > I mean the value of the Primary Key if it is Integer, not a > composite key. > > -- > Sincerely yours, Max > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: SV: [JBoss-user] CMP and PK
Hello! Recently (11.07.2001 19:12) you wrote: >> I have another simple question: when I make a CMP Entity Bean >> with the PK of type Integer, do I need to count the value of this >> PK in an ejbCreate() methos of the Bean class? LP> what do you mean by 'count the value' ? I mean the value of the Primary Key if it is Integer, not a composite key. -- Sincerely yours, Max ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP and PK
If you mean you need the number to be generated automatically, then I suggest you have a look at my code for a forum system, which uses autonumbers. http://csusap.csu.edu.au/~dmukhe01/freeforums/ Devraj At 17:54 11/07/01 +0500, you wrote: >Hello, jboss-user. > >I have another simple question: when I make a CMP Entity Bean >with the PK of type Integer, do I need to count the value of this >PK in an ejbCreate() methos of the Bean class? >Thanks. > >-- Max Krainov Alphanet International R. > > >___ >JBoss-user mailing list >[EMAIL PROTECTED] >http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
SV: [JBoss-user] CMP and PK
what do you mean by 'count the value' ? /Lennart - Original Message - From: Max Krainov <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 2:54 PM Subject: [JBoss-user] CMP and PK > Hello, jboss-user. > > I have another simple question: when I make a CMP Entity Bean > with the PK of type Integer, do I need to count the value of this > PK in an ejbCreate() methos of the Bean class? > Thanks. > > -- Max Krainov Alphanet International R. > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP and PK
Hello, jboss-user. I have another simple question: when I make a CMP Entity Bean with the PK of type Integer, do I need to count the value of this PK in an ejbCreate() methos of the Bean class? Thanks. -- Max Krainov Alphanet International R. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user