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: Handling Reference tables Mappings
PostPosted: Tue Dec 19, 2006 8:21 pm 
Newbie

Joined: Thu Dec 14, 2006 7:08 pm
Posts: 11
How do you handle the implementation and mapping of class properties whose values are usually retreived from references tables. For example
suppose you have the class,

class Person
{
Public int Id;
Public string FirstName;
Public string Country;
}

Assume the tables

Persons:
PersonId
FirstName
CountryId

Countries:
CountryId
FullName

Now I would like to store the country's fullname from the countries table in the Person class w/o createing a Country class.

How would I handle that mapping?

Cheers,
Aeden


Last edited by aedenj on Wed Dec 20, 2006 1:56 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Please
PostPosted: Tue Dec 19, 2006 10:08 pm 
Newbie

Joined: Mon Nov 20, 2006 1:53 am
Posts: 14
Can you point me to the post where you founc your answer please

Thanks


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.