Title: RE: (ROSE) Data Model and 2 classes with 2 parent associations each with oth er

Amine,

You can rename the column in the child table after you draw the relationship. There is no way for you to define the name of the foreign key column at generation time.


Regards,

Davor Gornik
Rational Software

+1(425)497-4091
[EMAIL PROTECTED]


-----Original Message-----
From: Amine BELOUALI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:22 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Data Model and 2 classes with 2 parent associations each with oth er



Hi all,

suppose you have 2 persistent classes A (a1, a2) and B (b1, b2) and you have
a parent association between A and B.

if you generate your Data Model in Rose you will have something like this

Table A : T_A (A_ID, a1, a2, B_ID) (where B_ID is a foreign key migrated
from B)
Table B : T_B (B_ID, b1, b2)

That's OK

Now suppose that A have 2 parent associations with B!

Rose will generate something like this :

Table A : T_A (A_ID, a1, a2, B_ID, col246)
Table B : T_B (B_ID, b1, b2)

he put "col246" as he can't give the same name "B_ID" to 2 different
columns.

Is there any way to have something like "B_ID_1" and "B_ID_2" ???

Your help will be appreciated

thanks in advance

Amine

 
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
* Only plain-text messages are supported.
* HTML or Rich-Text messages may be rejected.
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to