@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=Update.List.class) public @interface Update
How to use:
public interface UserMapper { @Update("UPDATE users SET name = #{name} WHERE id = #{id}") boolean update(User user); }
Modifier and Type | Required Element and Description |
---|---|
String[] |
value
Returns an SQL for updating record(s).
|
Modifier and Type | Optional Element and Description |
---|---|
String |
databaseId |
Copyright © 2009–2021 MyBatis.org. All rights reserved.