-->
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: Very basic collection help!
PostPosted: Wed Nov 05, 2008 7:13 pm 
Newbie

Joined: Wed Nov 05, 2008 5:58 pm
Posts: 1
Hi there!
I've read several tutorials on mapping but I haven't found one that explains me how to map my specific table design. I'm using Nhibernate 1.2
I have a One-Many relationship in which the parent table contains the Lectures that were given in a classroom, and the child table contains a Foreign key to the Lecture, a Foreign Key to the ID of the student and an indicator that tells you if he assisted or not to the lecture (A = Absent, P = Present).
Could you please tell me how to map this specific table structure? I don't know how to specify multi key columns in the onemany relationship tag!

Thanks in advance for reading the basic post!

Roberto


Top
 Profile  
 
 Post subject: the classes
PostPosted: Wed Nov 05, 2008 8:13 pm 
Newbie

Joined: Fri Oct 24, 2008 4:37 am
Posts: 11
Location: Planet earth
using nhibernate it is important that you tell how your classes look like. (class as source class) - in the documentation i think there is an example of just exactly this. (kitten-cat stuff)

_________________
With respect,
Morten


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.