-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Need Information while Commiting Link Tables
PostPosted: Tue Oct 18, 2005 9:37 am 
Beginner
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


Top
 Profile  
 
 Post subject: Similar problem
PostPosted: Tue Oct 18, 2005 10:38 am 
Newbie

Joined: Thu Mar 17, 2005 8:15 pm
Posts: 19
Hi
I had similar issue and resolved with traditional approach(may be this is the only way) by creating get/setAddress and get/setPerson objects.

Do let me know if u find any other solution


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.