Create and Instantiate Table1 with 2 attributes which will constitute the Primary key
Table1PrimaryKey1,TablePrimaryKey2

Create and Instantiate Table2 with one attribute that will constitute the Primary Key Table2PrimaryKey1
along with 2 columns which contain foreign keys to Table1
Table1PrimaryKey1,Table1PrimaryKey2

Create and Instantiate a HashMap containing 2 items of distinct types Table1 and Table2
HashMap will contain Table1 row,Table1b,Table2a,Table2b
Your accessor function of HashMap will get the name of Table1
HTH,
Martin-
----- Original Message ----- From: "Alessandro Imperio" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 18, 2005 1:50 PM
Subject: [castor-user] [JDO]Multiple column foreign key


Hi,
I've a question about the JDO mapping.
My situation is the following:

I've got two tables (named table A and table B).
The A table has two columns that together define the primary key.
The B table has two columns referring to the A fields with a foreign
key, and another column that defines the primary key.

Table A: field1 (PK) field2 (PK)
Table B: fk_a_field1 (FK) fx_a_field2 (FK) field3 (PK).

Is there a method to describe this situation in the mapping file?

Thanks in advance

Alessandro Imperio

-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------


-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to