
21
Oct, 13
First and last instance of grails domain class
Grails 2.x provide methods to retrieves the first and last instance of the domain class. User.first() User.last() Here we can pass name of the property to sort by. User.first('username') User.last('username') or User.first([sort: 'username']) User.first(sort:...
Recent Comments