-->
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: Hibernate mapping
PostPosted: Thu Jan 22, 2009 6:52 pm 
Newbie

Joined: Fri Dec 12, 2008 8:59 pm
Posts: 10
Hi,

I need help hibernate mapping tables,

actually there is 5 tables,

Employee -parent table
tempAddress - child table
permenant Adderess - child table
tempCity
permentCity

so when am searching employe type "A" i need to get the value for temp addess and perment adress too. and correscponding city also need to retrieve. id is the unique in all columns.

anybody plz suggest me.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 7:12 pm 
Regular
Regular

Joined: Tue Dec 30, 2008 8:14 pm
Posts: 50
If the Employee contains single instance of the other 4 attributes, may be you can define a many-to-one relation to those 4.


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.