Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-07 Thread Alexey Loubyansky
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

RE: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-05 Thread Hanson, Matthew
, 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

RE: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-04 Thread Hanson, Matthew
. 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

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-04 Thread Alexey Loubyansky
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

RE: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Hanson, Matthew
:[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

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
! 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

RE: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Hanson, Matthew
-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

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
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

RE: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Hanson, Matthew
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

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-03 Thread Alexey Loubyansky
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

[JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-02 Thread Hanson, Matthew
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

Re: [JBoss-user] Container Responsibility for CMR Foreign Keys

2003-12-02 Thread Alexey Loubyansky
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.