io.github.epi155.emsql.plugin.MyConstructor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emsql-maven-plugin Show documentation
Show all versions of emsql-maven-plugin Show documentation
Generate DAO classes with JDBC code and DTO interfaces from YAML configuration files
The newest version!
package io.github.epi155.emsql.plugin;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.constructor.Constructor;
import org.yaml.snakeyaml.nodes.MappingNode;
import java.util.Map;
public class MyConstructor extends Constructor {
private final ThreadLocal mapContext;
public MyConstructor(ThreadLocal mapContext) {
super(DaoClassConfig.class, new LoaderOptions());
this.mapContext = mapContext;
}
protected void constructMapping2ndStep(MappingNode node, Map