Grails Scaffolding - define possible values for this property of a domain class
问题 I am new to Grails. I have a Person domain class as : class Person { String firstName String lastName String gender Date dateOfBirth } And wondering if I can define possible values for a property - say gender as {M, F, U} so that these three values will be listed in combo box when using dynamic scaffolding for Person controller. Here I just wanted to know if there is such feature in Grails framework? If such feature exists , then how can I use it? 回答1: From the documentation http://grails.org