-->
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: Someone could help me on creating a hibernate query?
PostPosted: Wed Oct 11, 2006 2:26 pm 
Newbie

Joined: Wed Oct 11, 2006 2:14 pm
Posts: 2
Hello!
I'm new to Hibernate and I would like someone
to describe me how to get data from two tables
using hibernate with the following condition:

-------------------------------------------------------------------
| |

table Users: email(pri), name, age; 1-----N table Reports: id(pri), email(fk), report, date;

How would be my mappings either? Well, I would like to get all data in Reports table and
all data in Users table which contain the corresponding email attribute in table Reports.

Thanks!!


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.