-->
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: Ho to load an object from many to many relationship table
PostPosted: Wed Oct 10, 2012 6:12 am 
Newbie

Joined: Wed Oct 10, 2012 5:57 am
Posts: 1
I have the following table fields:
    ID,ROOM,TEACHER,LAST_UPDATE
where data can be of the following
    1,R1,T1,Sept 2, 2012
    2,R1,T2,Sept 3, 2012
    3,R2,T1,Sept 2, 2012
    4,R2,T2,Sept 3, 2012
    5,R2,T3,Sept 5, 2012
    6,R1,T4,Sept 2, 2012

I wanted to load these data into an object where ROOM will be one field and a set with different TEACHER.
I will need to have 2 objects for these set of data, where ROOM will be R1 and R2, and theor corresponding TEACHER in their own set instance.


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.