My bad this do all the trick , private Static Final String Custom = "Custom" //lie in class Constants //LookupTypeEnum is Enum collection implementation class if don't have it simply you can replace it with your value ="Custom" or a variable Constants.Custom
LookUp.createCriteria.list() {
eq('type',LookupTypeEnum.valueOf(Constants.Custom).toString())
projections { //projection does the trick
property('value')
}
}
It's equivalent SQl select query is :
select value from lookup where type='custom' ;