[Grails] 关于一对多的排序,如果需要对两个值进行排序的话就无法实现
oksonic
2010-01-20
class Author { static hasMany = [books:Book] static mapping = { books sort:"title" } } class Author { int sec static hasMany = [books:Book] static mapping = { sort "sec" books sort:"title" } } 这里有两个参数需要进行排序,但无法实现哪个先哪个后。 |