This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Object Relational Mapping
Hibernate: how to look for objects in a Set
Joined: Jan 29, 2005
Jul 25, 2011 10:47:44
I am trying to figure out what is the best way to write the HQL statement for the following scenario:
I have a class Book which has a property of the type Set<Author>. The class Author has properties such as name, etc.
Now my DAO method gets "Set<Author>
" as a parameter. For this method I want to write an HQL query so I could get all the Books that at least one of their Authors is found in
What is the best way to accomplish this?
We must know, we will know. -- David Hilbert
subject: Hibernate: how to look for objects in a Set
So much on the Left Joins in Hibernate
Passing Set<java.lang.Object> and List<java.lang.Object> in Axis 2.0
Inserting data in Intermediate table on the Many-to-Many
Spring pre-select/pre-populate MULTI-SELECT box OPTIONs
JSTL and collections
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014