Beginner |
|
Joined: Tue Jun 21, 2005 2:21 am Posts: 22
|
Hi
I need to know information on commiting Information in Link Tables ;
Say i have following tables
1) PERSON
2) ADDRESS
3) PERSON_ADDRESS
here PERSON_ADDRESS is a Link table which has following columns
1)GUID
2)ADDRESS_ID
3)PERSON_ID
I'm creating a new Instance for PERSON , ADDRESS and PERSON_ADDRESS in a single transaction scope
so how i need to populate ADDRESS_ID and PERSON_ID columns in PERSON_ADDRESS table
is that i need to have get/setAddress() , get/setPerson() method in my PERSON_ADDRESS pojo or is there any other way to achieve this
help appreciated
|
|