Unfortunately, you can't use this kind of key generation with
insert-after-ejb-post-create.
[ 784322 ] INSERT after ejbPostCreate
http://sourceforge.net/tracker/?func=detailaid=784322group_id=22866atid=381174
By the spec (and current implementation), the primary key should be set
in ejbCreate
, 2003 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
Key generation commands in 3.2.1 are different from those in 3.2.2. In
3.2.2 you should have auto-increment/ for generated fields.
Could check whether key generation work for you w/o mapping
.
Regards!
Matt Hanson
-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
Is the column in the database was created with IDENTITY
Key generation commands in 3.2.1 are different from those in 3.2.2. In
3.2.2 you should have auto-increment/ for generated fields.
Could check whether key generation work for you w/o mapping foreign key
fields to the primary key fields?
Hanson, Matthew wrote:
Hi
Just another FYI on the null
:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
By the spec, you may not establish relationships in ejbCreate but may in
ejbPostCreate.
By default, INSERT is done after ejbCreate but before
!
Regards,
Matt Hanson
-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
By the spec, you may not establish relationships in ejbCreate
-relation
/relationships
/jbosscmp-jdbc
Any advice?
Thanks!!!
Regards,
Matt Hanson
-Original Message-
From: Alexey Loubyansky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 9:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
The auto incremented/generated field should have auto-increment/ in
jbosscmp-jdbc.xml
---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could
PROTECTED]
Subject: Re: [JBoss-user] Container Responsibility for CMR Foreign Keys
The auto incremented/generated field should have auto-increment/ in
jbosscmp-jdbc.xml
---
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape
Is the column in the database was created with IDENTITY attribute?
Hanson, Matthew wrote:
Hi--
Well, I added the auto-increment tag to jbosscmp-jdbc.xml, and the null
primary key exception is still thrown:
---
This SF.net email is sponsored
Hi,
I am using xdoclet 1.2b2 to generate deployment descriptors and classes,
including value objects, for two beans that I hope to write with support for
CMR. We also use Jboss 3.2.1 as my app server and hypersonic and/or mysql
as the db.
Basically, I just want to write a relatively
By the spec, you may not establish relationships in ejbCreate but may in
ejbPostCreate.
By default, INSERT is done after ejbCreate but before ejbPostCreate.
You can use insert-after-ejb-post-create to delay INSERT until after
ejbPostCreate but this feature is available, AFAIR, since 3.2.2.
12 matches
Mail list logo