io.github.harishb2k.easy.database.mysql.config.MySqlConfigs Maven / Gradle / Ivy
package io.github.harishb2k.easy.database.mysql.config;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
import static io.github.harishb2k.easy.database.DatabaseConstant.DATASOURCE_DEFAULT;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MySqlConfigs {
private Map configs;
public void addConfig(MySqlConfig config) {
addConfig(DATASOURCE_DEFAULT, config);
}
public void addConfig(String name, MySqlConfig config) {
if (configs == null) {
configs = new HashMap<>();
}
configs.put(name, config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy