Annotation Interface UpdateProvider


@Documented @Retention(RUNTIME) @Target(METHOD) @Repeatable(UpdateProvider.List.class) public @interface UpdateProvider
The annotation that specify a method that provide an SQL for updating record(s).

How to use:

 public interface UserMapper {

   @UpdateProvider(type = SqlProvider.class, method = "update")
   boolean update(User user);

   public static class SqlProvider {
     public static String update() {
       return "UPDATE users SET name = #{name} WHERE id = #{id}";
     }
   }

 }
 
Author:
Clinton Begin