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: Help with an HQL query
PostPosted: Wed Nov 28, 2007 1:06 pm 
Newbie

Joined: Fri Nov 17, 2006 7:13 am
Posts: 2
I'm using Hibernate to write a small application to get used to it.
I need to use HQL for a couple of complex queries but I don't know how to do what I want.

These are the classes that I have:
Class Date, with an identifier, the day, month, and year.
Class Meeting, with an identifier and description.
Class Place, with an identifier and description.

For each of these classes there's a table in the database.

I also have a date_meeting_place table to link these values, with a date identifier, a place identifier, and a meeting identifier.



I need to create an HQL query to get a List with the name of each place, and the number of meetings the user had at that place.

How can I do such a thing?

Thank you very much.


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.