public < S extends Model , R > AnimaQuery < T > where ( TypeFunction < S , R > function , Object value ) { String columnName = AnimaUtils . getLambdaColumnName ( function ) ; conditionSQL . append ( " AND " ) . append ( columnName ) . append ( " = ?" ) ; paramValues . add ( value ) ; return this ; }
Set the column name using lambda at the same time setting the value the SQL generated is column = ?