Package org.apache.ibatis.annotations
Annotation Type Select
-
@Documented @Retention(RUNTIME) @Target(METHOD) @Repeatable(List.class) public @interface Select
The annotation that specify an SQL for retrieving record(s).How to use:
- Simple:
{@code public interface UserMapper {
- See Also:
- How to use Dynamic SQL
- Simple:
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]valueReturns an SQL for retrieving record(s).
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanaffectDataReturns whether this select affects DB data.
e.g.java.lang.StringdatabaseId
-