0

是否有某种方法可以按照我在类中声明它们的相同顺序检索域类的持久属性?

class MyDomainClass {
  String prop1
  String prop2
  String prop3
}


def domainClass = grailsApplication.getDomainClass(MyDomainClass)
def props = domainClass.persistentProperties //this not retrieve them in order.
4

1 回答 1

1
于 2012-12-10T12:56:37.707 回答