templates.redisMapper.ftl Maven / Gradle / Ivy
package ${package.Mapper};
import ${package.Entity}.${entity};
import ${superMapperClassPackage};
import ${cfg.packageRedis}.RedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
/**
*
* ${table.comment!} Mapper 接口
*
*
* @author ${author}
* @since ${date}
*/
<#if kotlin>
<#if (enableCache&&cfg.enableRedis)>
@CacheNamespace(implementation= RedisCache::class.java,eviction= RedisCache::class.java)
#if>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
<#if (enableCache&&cfg.enableRedis)>
@CacheNamespace(implementation= RedisCache.class,eviction= RedisCache.class)
#if>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
}
#if>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy