pub.codex.core.template.MapperXmlTemplate 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 XML coding 模板
*/
@Component
public class MapperXmlTemplate extends TableCodexTemplate {
private final String TEMPLATE_NAME = "Mapper.xml";
@Override
public String templateName() {
return TEMPLATE_NAME;
}
@Override
public Map environmentMap() {
return Collections.emptyMap();
}
@Override
public String storagePath() {
return buildMapperXMLFilePath(TEMPLATE_NAME);
}
}