I've got a grails app, with two domain objects: Book, and Category.
Book has many categories (i.e., static hasMany = [categories: Category])
Can I use HQL to do something like:
Book.findAll("select b from Book as b
where b != :book any elements(b.categories) in (:categories)",
[book: myBook, categories: myBook.categories])
I can't seem to find examples where comparisons are made between two collections.
Most of the ones I've seen only has one collection