是否有某种方法可以按照我在类中声明它们的相同顺序检索域类的持久属性?
class MyDomainClass {
String prop1
String prop2
String prop3
}
def domainClass = grailsApplication.getDomainClass(MyDomainClass)
def props = domainClass.persistentProperties //this not retrieve them in order.