@Var¶
Command method param extension
Marks parameter as command variable.
In contrast to el vars, these variables are used during query execution:
For example,
@Query('select name from Model where name in $tst')
String[] findByName(@Var("tst") List tst);
Note
This is not the best example (could be easily rewritten with sql parameter), but it just demonstrates usage.