pub.codex.core.template.MapperTemplate Maven / Gradle / Ivy
package pub.codex.core.template;
import org.springframework.stereotype.Component;
import pub.codex.core.template.stream.template.TableCodexTemplate;
import java.util.Collections;
import java.util.Map;
/**
* Mapper类coding 模板
*/
@Component
public class MapperTemplate extends TableCodexTemplate {
private final String TEMPLATE_NAME = "Mapper.java";
@Override
public String templateName() {
return TEMPLATE_NAME;
}
@Override
public Map environmentMap() {
return Collections.emptyMap();
}
@Override
public String storagePath() {
return buildMapperFilePath(TEMPLATE_NAME);
}
}