Package org.apache.ibatis.annotations
Annotation Type Select
The annotation that specify an SQL for retrieving record(s).
How to use:
public interface UserMapper {
@Select("SELECT id, name FROM users WHERE id = #{id}")
User selectById(int id);
}
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements