Package org.apache.ibatis.annotations
Annotation Type Update
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(Update.List.class)
public @interface Update
The annotation that specify an SQL for updating record(s).
How to use:
public interface UserMapper { @Update("UPDATE users SET name = #{name} WHERE id = #{id}") boolean update(User user); }
- Author:
- Clinton Begin
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
databaseId
-