closures - Grails Criteria querying a list with ilike -


i want query list in criteria this:

def patterns = ["abc%", "cde%"] def criteria = myentity.createcriteria(); def results = criteria.list {   , {     patterns.collect {       not { ilike(name, it) }     } } 

is possible? have query working?

instead of collecting create collection of contents need iterate.

def patterns = ["abc%", "cde%"] def criteria = myentity.createcriteria(); def results = criteria.list {   , {     patterns.each {       not { ilike('name', it) }     } } 

Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -