@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Sql
This annotation can be combined with following annotations:
@Dao
public interface EmployeeDao {
@Sql("select name from employee where age = /* age */0)")
@Select
List<String> selectNamesByAge(int age);
@Sql("insert into employee (name) values (/* employee.name */'test data')")
@Insert
int insert(Employee employee);
}
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
value |