-->
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.  [ 1 post ] 
Author Message
 Post subject: maping hibernate hbm.xml- newbie question
PostPosted: Wed Oct 21, 2009 12:40 pm 
Newbie

Joined: Mon Sep 21, 2009 7:50 am
Posts: 2
I am new to hibernate,

i have 2 tables. customer and customer_residence

Customer
=======

customerID [pk]
customerName

customer_residence
===============

customer_residenceID [pk]
customerID [fk]
customerAddress

in this, 1 Customer could have many customer_residence. for example a person named X may have residence in US,UK, etc.

could some one please show me how to write the HBM.XML classes for these, and also a main method to test this program. (in the main method , the customerAddress should be an ARRAYLIST)

please note, that this is not my homework that i'm making u to do, i am trying to understand how to code this, so i could use this concept to code my real application.


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

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.