Grails

Create game Leaderboard using sqlProjection

Recently I was working on a Facebook game application using Grails 2.0 and Postgres database. The use case was to show the game leaderboard with ranks of the players. Players with same score should be given same rank and next player rank should be incremented rank of last player. Here is the sample data for players and expected result: ...

by Bhagwat Kumar
Tag: grails createCriteria
08-Nov-2012

Grails

Grails Data Binding & criteria reuse

Data Binding in grails is something that I love alot. In most of the cases we look at the Binding with respect to some domain class but binding can be one of the best candidate for searching and filtration. In my recent project we had a domain Class Article and the user could filter articles on different criteria. The page looks...

by Uday Pratap Singh
Tag: grails createCriteria
01-Jul-2011