I grails i m trying to fetch a lookup value from the database and i want to list a list of single column value that is "Value" column .
private Static Final String Custom = "Custom" //lie in class Constants
LookUp.createCriteria.list() {
eq('type',LookupTypeEnum.valueOf(Constants.Custom).toString())
}
this listing was like select ,
how can i make this query into
Select Value from LookUp where Type = 'Custom'
i want my grails query to return me a single query result like the sql. I want to bind it to a list box?