I have a domain Payment
class Payment { String name PaymentType paymentType }
PaymentType is an ENUM
to search
If paymentType is an array, you can do something like this:
def results = Payment.createCriteria().list { 'in' ('paymentType', params.paymentType.collect{PaymentType.valueOf(it)}) }