Is there a way to use findWhereand not equal value (trying to use it against the criteria)?
eg.
Books.findWhere('sale' : true, 'category': ne('exclude me') )
I have a working solution, but I was wondering if there is a way to use findWhere. I find it easier to read it.
def result = Books.createCriteria().get{
eq('sale', true)
ne("category", 'exclude me')
}
source
share