| Author |
Message |
|
2006/11/28 04:07
|
|
|
Samir
Joined: 2006/11/28
Messages: 7
Offline
|
|
|
|
Hi-
I am doing reverse engg of database,after taking couple of tables[entities] into ERD, I am doing sync to classes..but the ORM objects which are getting generated are not having foreign keys as attributes.Means the ORM objects shows only those columns[as attribute] which are not having any foreign reference on the column.
So my question is how can I get the foreign key referenced column(s) also in the ORM objects, so I dont have to enter attributes manually in each ORM objects, and basically why the ORM object generation is missing FK attributes.
Thanks,
Samir.
|
|
|
|
 |
| |
|
2006/11/28 12:05
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
Hi Samir,
The Foreign Key column is maintained by association, and not being handled as normal attribute.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2006/11/29 10:51
|
|
|
Samir
Joined: 2006/11/28
Messages: 7
Offline
|
|
|
|
Yes, agreed, but while doing a reverse engg of database, if that some tables are having composite PK's, then relationship link shows objects name only, how ORM will aware that which attributes are of composite nature? as relationship never talks about attributes.
let me know.
Thanks,
Samir.
|
|
|
|
 |
| |
|
2006/11/29 16:50
|
|
|
Jick
Joined: 2005/04/29
Messages: 2880
Offline
|
|
|
|
HI Samir,
Sorry, but we do not quite understand.
There is no difference between single and composite FK in object layer (java code). They are just different in database and will be handled transparently in ORM.
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |