marloncarvalho/aliendroid-activerecord — pull request #3 by hjort (2012-04-11 20:52:56+00:00)
Title: Criação do método Model.createSQLQuery().

Exemplo de uso:

// SELECT DISTINCT rodovia AS codigo FROM trecho WHERE uf = 'SE' ORDER BY 1;
public static List findByUF(final String uf) {
final List listaRodovias = Model.createSQLQuery(Rodovia.class,
"SELECT DISTINCT rodovia AS codigo FROM trecho WHERE uf = ? ORDER BY 1", uf);
return listaRodovias;
}