Lewis,
I see in your code one distinctive Country per Address (it is a private
Attribute). In this case the conversion would be ok.
Can you copy the class diagram and the data model diagram pictures of this?
Thanks!
Davor Gornik
Marketing Engineer Rose Business Unit
Rational Software
Phone: +1-425-497-4091
Email: [EMAIL PROTECTED]
--------------------------------------------------------------------
Rational User Conference 2001
July 22 - 26, 2001 * Denver, CO, USA
http://www.rational.com/ruc
-----Original Message-----
From: Lewis Lin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 3:51 PM
To: Rose Forum (E-mail)
Subject: (ROSE) Many to one relationship
Hi,
I have an Address class that contain a Country class in Object Model.
class Address {
private Country country;
}
When I transfer this relationship to a data model. I got a wrong Table
design.
Table Address
Address_ID:int
Table Country
Country_ID:int
Address_ID:int (FK)
shouldn't the FK exist in Address? Since I set the relationship between
address and country in object model to many-to-one relationship?
Thanks,
Lewis Lin
Fairway Financial Consulting
==========================================================
PC home �K�O�q�l�H�c�A�ӽнЦ�: http://www.pchome.com.tw
PC home Online �����a�x�@�@ �|���Ĥ@�A�x�W�̤j���J�f����
==========================================================
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Admin.Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
http://www.rational.com/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************