This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

criteria builder with disjunction for hasMany properties

 
liliya woland
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic