I am trying to query database using GORM, when I pass '%' as value, its returning all the rows in the table. how can I escape % character?
def query="from Person as t WHERE (firstName like :firstName)"
def v ="%"
gSearchMap[ firstName]= "%"+v+"%"
def rows = domain.findAll(query.toString(),gSearchMap,limits)