Title: [JBoss-user] [Persistence & CMP/JBoss] - Re: Problem : CMR field cannot be null
A field is either a CMP or CMR, not both. CMP fields can be mapped to foreign key columns.
 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Macpherson
Sent: Friday, February 13, 2004 2:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] [Persistence & CMP/JBoss] - Re: Problem : CMR field cannot be null

It definitely works on 3.2.2 or greater. One caveat is that you cannot use container generated primary keys, perhaps that is the problem you are seeing? You have to supply the primary key "manually". As far as patching jboss.xml you can do that in your ant script after XDoclet has run with a simple substitution.
 
Sounds like you have a good solution though. I did not realize you could stipulate that a field was both CMR and CMP. You sure that works? If so that's great.  

Reply via email to