This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Groovy and the fly likes criteria builder with disjunction for hasMany properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "criteria builder with disjunction for hasMany properties" Watch "criteria builder with disjunction for hasMany properties" New topic
Author

criteria builder with disjunction for hasMany properties

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
I'm attempting to search Retailer db object; my search brakes. At this point I have the following:

The problem is that in Retailer hasMany I have

But while brands: Brand is a db object, the other two objects are simple arrays. Line brands{ 'in'("id",supplier.brands.id)} works fine. But how do I run 'in' comparison of myList for likedBrandNames? Anybody?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: criteria builder with disjunction for hasMany properties
 
Similar Threads
How to map a tagged item?
Xlint:unchecked
Design question Hibernate Query
Code design question
MVC2 outside servlet for testing