-->
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: using one FORM for two different tables
PostPosted: Mon Nov 28, 2005 4:49 am 
Newbie

Joined: Wed Sep 28, 2005 8:46 am
Posts: 9
I have two tables:
TABLE 1: Person (personid, personname)
TABLE 2: Person_Address(addressid, personid, address, city, zipcode, country)

I have ONE FORM with field personname, address, city, zipcode, country. What I want is, when I submit this form the values from the form should go to their respective tables. Can someone please help me how to do it. And how to write the Person.hbm.xml file?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 5:16 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
http://www.hibernate.org/152.html


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.