fun.fengwk.automapper.example.mapper.ExampleMapper Maven / Gradle / Ivy
The newest version!
package fun.fengwk.automapper.example.mapper;
import fun.fengwk.automapper.annotation.*;
import fun.fengwk.automapper.example.model.ExampleDO;
import fun.fengwk.automapper.example.model.LogicDeleteParams;
import org.apache.ibatis.annotations.Param;
import java.util.Collection;
import java.util.List;
/**
*
* @author fengwk
*/
@AutoMapper
public interface ExampleMapper extends BaseMapper {
@ExcludeField("f1")
int insert(ExampleDO exampleDO);
@IncludeField("f1")
@IncludeField("f2")
int insertSelective(ExampleDO exampleDO);
int insertIgnore(ExampleDO exampleDO);
int insertOnDuplicateKeyUpdateSelective(ExampleDO exampleDO);
int replace(ExampleDO exampleDO);
@ExcludeField.List({
@ExcludeField("f1"),
@ExcludeField("f2")
})
int insertAll(List exampleDOs);
int insertAllSelective(List exampleDOs);
int deleteById(long id);
int updateById(ExampleDO exampleDO);
int updateByIdSelective(ExampleDO exampleDO);
ExampleDO findById(long id);
List findByName(@Selective String name);
List findByNameStartingWith(@Param("name") String name, @DynamicOrderBy @Param("orderBy") String orderBy);
List findByNameStartingWithAndSortGreaterThanEqualsOrderBySortDesc(@Param("name") String name, @Param("sort") int sort);
List pageByNameStartingWithAndSortGreaterThanEqualsOrderBySortDesc(@Param("name") String name, @Param("sort") int sort, @Param("limit") int limit);
List findByIdInAndIsDeleted(@Param("id") Collection ids, int isDeleted);
int countByIdIn(List ids);
@MethodExpr("updateByIdAndVersion")
int logicDelete(LogicDeleteParams params);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy