in einer Klasse Ich habeGrails Kartierungs-/Sortier Verbände
static hasMany = [allocations: Allocations]
.. und eine Abbildung
static mapping = {
allocations sort: 'line'
}
Ich mag würde ein zweites Sortierfeld .. So etwas wie
static mapping = {
allocations sort: ['line', 'qty']
}
hinzufügen
aber ich kann nichts zur Arbeit bekommen (versuchte Zuordnungen sort: ([line: 'asc', Menge: 'asc']) und andere) .. Ist es möglich, assoziieren zu sortieren auf mehr als einer Immobilie?
BTW auf Grails 2.3.7 ..
Dank