Another place where we allow functions to be executed using SQL restriction: https://github.com/grails/gorm-hibernate5/blob/78078667bd9656cb85d59a34b4949562cf61db2b/grails-datastore-gorm-hibernate5/src/main/groovy/org/grails/orm/hibernate/query/AbstractHibernateQuery.java#L281 |