Given a basic domain class
class WorkOrderStatus {
String status
static mapping = {
sort status: 'desc'
}
}
How can I access in a GSP page or controller the values in that static mapping block?
Thanks!
Found this excellent post to explain how to do it. This code (using the class in the article) produces the desired results.
ClosureInterrogator.extractValuesFromClosure(domainClass.clazz.mapping)