How to limit the size of association in grails?
问题 I have a grails domain class as below : class Order { String orderId = 'OD' + System.nanoTime().toString() Date orderedDate String itemName List bids; static hasMany = [ bids: Bid ;likedUsers: User,] static belongsTo =[owner:User] } class Bid { Integer amount User bidedUser static belongsTo = [Order] } class User { String username String password String emailId List orders static hasMany = [orders:Order] } What I am trying to do is , to query for an order with bits with maxResult of 10 as