This is covered in the JBossCMP docs.  If you don't want to buy the docs, you can look at the dtd or the cmp2 testsuite.
 
-dain
-----Original Message-----
From: Rama Rao [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 19, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] <foreign-key-field> in jboss-3.0

Hi All,
How do i specify the exisiting CMP field in a table as a foreign key field in the relationships tag in jbosscmp-jdbc.xml?
 
For example i have a table
Employee:
EID
DID
and
Deparment:
DID
Name
I want to set fields as CMP fields and in the foreign key mapping set DID as foreign key field. If i set it like that jboss is creating one more column with the name CMRField_PrimaryKey name.
 
 
Thanks in Advance
Rama Rao

Reply via email to