|
|
Browse by Tags
All Tags » Native Queries » Groovy (RSS)
-
On this blog post Jochen Theodorou uses Groovy features like operator overloading and closures to write SODA queries like the following:Query query=db.query();query.constrain(Pilot.class);query.name == ''Michael Schumacher'' && query.points == 99Query query=db.query()query.constrain(Pilot.class)query.constrain { it.name.length() < 5 ...
|
|
|