Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.databases > #177
| From | "Tobi" <tobi@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Hibernate question/Classe |
| Message-ID | <927be799-bcef-446a-805d-85e54a22588b@f63g2000hsf.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.databases |
| Date | 2011-04-27 15:22 +0000 |
| Organization | TDS.net |
To: comp.lang.java.databases 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 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.databases | Previous | Next | Find similar
Hibernate question/Classe "Tobi" <tobi@THRWHITE.remove-dii-this> - 2011-04-27 15:22 +0000
csiph-web