Hibernate question/Classes that contains a Collection
- From: Tobi <TobiMc3@xxxxxxxxx>
- Date: Tue, 10 Jun 2008 11:06:21 -0700 (PDT)
Hi-
I have two hibernate classes, with a many to one relationship existing
between them. The first class, Task, contains a set of Listener
objects.
I am able to save Task objects and have the set of Listeners also save
properly. Am wondering how to do a query for only Task objects that
have a non-empty Listener set. I used the Restrictions.isNotEmpty()
on the listener property, but it seems to be returning all of the Task
objects, instead of just Task objects where the collection isn't
empty.
Are there any gotchas I should look out for?
Thanks
.
- Prev by Date: Re: LDBC driver
- Next by Date: PostgresQL 55000 error
- Previous by thread: [red]Search for jobs in IT, marketing, software, finance.[/red]
- Next by thread: PostgresQL 55000 error
- Index(es):