Package org.apache.ibatis.annotations
Annotation Type Delete
@Documented @Retention(RUNTIME) @Target(METHOD) @Repeatable(List.class) public @interface Delete
The annotation that specify an SQL for deleting record(s).
How to use:
public interface UserMapper { @Delete("DELETE FROM users WHERE id = #{id}") boolean deleteById(int id); }
- Author:
- Clinton Begin
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Delete.List
The container annotation forDelete
. -
Required Element Summary
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
databaseId