@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=Delete.List.class) public @interface Delete
How to use:
public interface UserMapper { @Delete("DELETE FROM users WHERE id = #{id}") boolean deleteById(int id); }
Modifier and Type | Required Element and Description |
---|---|
String[] |
value
Returns an SQL for deleting record(s).
|
Modifier and Type | Optional Element and Description |
---|---|
String |
databaseId |
Copyright © 2009–2020 MyBatis.org. All rights reserved.