validateProjection

fun validateProjection(fn: String, stmt: Statement, columnNames: Set<String>)(source)

Validates that a find* method whose result is bound by the generated row mapper selects every entity column (or SELECT *). A partial projection would leave the mapper without a column at runtime. Multi-table queries and non-plain selects are skipped.