Retrieving a list of GORM persistent properties for a domain
Try this: import org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass … def d = new DefaultGrailsDomainClass(YourDomain.class) d.persistentProperties Here’s a link to the Grails API for GrailsDomainClass (it’s a link to an older version; I couldn’t find a newer one after some quick searches). It’s got a getPersistentProperties() (used in the code snippet above). You can traverse the API documentation to see … Read more