sql2o is a Java library which allows you to run SQL queries and parse the result into your POJOs using only a few lines of code.