com.github.yulichang.extension.mapping.config.MappingConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-join-extension Show documentation
Show all versions of mybatis-plus-join-extension Show documentation
An enhanced toolkit of Mybatis-Plus to simplify development.
package com.github.yulichang.extension.mapping.config;
import com.baomidou.mybatisplus.core.metadata.TableInfoHelper;
import com.github.yulichang.extension.mapping.mapper.MPJTableInfoHelper;
import com.github.yulichang.toolkit.MPJTableMapperHelper;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
/**
* 关系映射配置
*
* @author yulichang
* @since 1.2.0
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class MappingConfig {
public static void init() {
TableInfoHelper.getTableInfos().forEach(i ->
MPJTableInfoHelper.initTableInfo(i.getEntityType(), MPJTableMapperHelper.getMapper(i.getEntityType())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy