File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes criteria builder with disjunction for hasMany properties Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply 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: 115
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?
 
 
subject: criteria builder with disjunction for hasMany properties
 
Threads others viewed
Xlint:unchecked
How to map a tagged item?
Design question Hibernate Query
MVC2 outside servlet for testing
Code design question
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com