Integer id = r.getValue(AUTHOR.ID);
String firstName = r.getValue(AUTHOR.FIRST_NAME);
String lastName = r.getValue(AUTHOR.LAST_NAME);
I would expect r.id
r.first_name
r.last_name
If the ORM has to create the classes for the tables, let it do it.