-->
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: Association
PostPosted: Mon Mar 24, 2008 4:15 am 
Newbie

Joined: Tue Mar 18, 2008 2:07 pm
Posts: 10
Hi frndz,
I am not familar in Association. Even tough i got little bit of idea from net.
My Requirment is

I have three table.
Table1
Table2
Table3


Table1 is related with Table2 by one-to-many association.
Table 2 is related with Table3 by one-to-one association.

am going to save the Table1 object. It has to automatically save the data in table2,table3

Is it possible. if you know plz update me frndz.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 24, 2008 6:44 am 
Beginner
Beginner

Joined: Wed Mar 21, 2007 10:23 am
Posts: 20
Hi sivaprakashcg,

Yes it is definitely possible. It's even the default behavior if you save (or update) the object represented by your table1. As it's point out in your other thread, it also depends on your mapping files. So if you want more advices don't hesitate to post them.


I hope this help.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.