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

templates.redisMapper.ftl Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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) interface ${table.mapperName} : ${superMapperClass}<${entity}> <#else> <#if (enableCache&&cfg.enableRedis)> @CacheNamespace(implementation= RedisCache.class,eviction= RedisCache.class) public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy