Freitag, 26. Juli 2013

Xtend and Querydsl - Concise, typesafe queries

Querydsl is an awesome framework for building typesafe queries for various backends like JPA, JDO or plain SQL. It already reads very nicely in plain Java:

With Xtend, we can add some careful operator overloading to make this look even more like a normal SQL query, yet completely typesafe:

I have released these operator overloadings as part of the version 0.0.1 of xtend-contrib. As always, I am happy for any feedback you might have.