Annotation 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
    Modifier and Type
    Class
    Description
    static @interface 
    The container annotation for Update.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns an SQL for updating record(s).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String[] value
      Returns an SQL for updating record(s).
      Returns:
      an SQL for updating record(s)
    • databaseId

      String databaseId
      Returns:
      A database id that correspond this statement
      Since:
      3.5.5
      Default:
      ""