expandSelectStar
fun expandSelectStar(stmt: Statement, sql: String, tableName: String, columnNames: List<String>): String(source)
Rewrites a bare SELECT * over the entity's own table into the entity's explicit columns. Returns the SQL unchanged for anything else (joins, a different table, SELECT count(*), an explicit list).