Interface MPJRelationService<T>
- All Superinterfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<T>,com.baomidou.mybatisplus.extension.service.IService<T>
public interface MPJRelationService<T>
extends com.baomidou.mybatisplus.extension.service.IService<T>
深度查询
对配置了映射注解的字段进行查询 目前查询深度只支持2级(只解析当前实体类的映射注解,不会对查询结果再次解析注解) 多级查询可能存在循环引用的问题,也可能会导致全量查询 用于替换deep
- Since:
- 1.4.4
- Author:
- yulichang
- See Also:
-
EntityMappingFieldMapping
-
Field Summary
Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
Method Summary
Modifier and TypeMethodDescriptiondefault <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>>
RgetRelation(Function<M, R> function) 通过注解实现单表多次查询default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>>
RgetRelation(Function<M, R> function, DeepConfig<T> config) 通过注解实现单表多次查询default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>>
RgetRelation(Function<M, R> function, Function<DeepConfig.Builder<T>, DeepConfig.Builder<T>> config) 通过注解实现单表多次查询Methods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateByIdMethods inherited from interface com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
Method Details
-
getRelation
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(Function<M, R> function) 通过注解实现单表多次查询- Parameters:
function- BaseMapper调用方法- See Also:
-
EntityMappingFieldMapping
-
getRelation
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(Function<M, R> function, DeepConfig<T> config) 通过注解实现单表多次查询- Parameters:
function- BaseMapper调用方法- See Also:
-
EntityMappingFieldMapping
-
getRelation
default <R,M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>> R getRelation(Function<M, R> function, Function<DeepConfig.Builder<T>, DeepConfig.Builder<T>> config) 通过注解实现单表多次查询- Parameters:
function- BaseMapper调用方法config- 映射配置- See Also:
-
EntityMappingFieldMapping
-