All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.mapper.ftl Maven / Gradle / Ivy

package ${entityInfo.mapperPackage};

<#list imports as pkg>
import ${pkg};


/**
 * 

* ${entityInfo.tableInfo.remarks!} Mapper 接口 *

* * @author ${author!} * @since ${date} */ <#if mapperConfig.isMapperAnnotation()> @Mapper public interface ${entityInfo.mapperName} ${superExtend}<${entityInfo.name}> { <#if entityInfo.hasMultiId()> default ${entityInfo.name} getById(<#list entityInfo.idFieldInfoList as field>${field.typeName} ${field.name}<#if field_has_next>, ){ return this.get(where -> where<#list entityInfo.idFieldInfoList as field>.eq(${entityInfo.name}::${field.getterMethodName()}, ${field.name})); } default int deleteById(<#list entityInfo.idFieldInfoList as field>${field.typeName} ${field.name}<#if field_has_next>, ){ return this.delete(where -> where<#list entityInfo.idFieldInfoList as field>.eq(${entityInfo.name}::${field.getterMethodName()}, ${field.name})); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy