-->
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: Loading a field by id
PostPosted: Sat Sep 17, 2005 11:38 am 
Sorry for the bad name, I can't think of a good name for it.

I've the following scenario:

create table users(id int, name varchar, typeId int)
create table usersTypes(id int, desc varchar)

I want my User object to have:

public string Type { get; set; }

I know how to do it in SQL, but how do I setup the mapping so NH would do it for me?


Top
  
 
 Post subject:
PostPosted: Sat Sep 17, 2005 11:59 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
<many-to-one>


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.