Annotation Interface DeleteProvider


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

How to use:

 public interface UserMapper {

   @DeleteProvider(type = SqlProvider.class, method = "deleteById")
   boolean deleteById(int id);

   public static class SqlProvider {
     public static String deleteById() {
       return "DELETE FROM users WHERE id = #{id}";
     }
   }

 }
 
Author:
Clinton Begin