|
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.
|