ec.gob.senescyt.sniese.commons.configurations.ConfiguracionPersistente Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sniese-commons Show documentation
Show all versions of sniese-commons Show documentation
Librería que contiene clases de uso comun para sniese hechos en dropwizard
package ec.gob.senescyt.sniese.commons.configurations;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.annotations.VisibleForTesting;
import io.dropwizard.db.DataSourceFactory;
public class ConfiguracionPersistente {
@JsonProperty("database")
private DataSourceFactory database;
public ConfiguracionPersistente() {
// do nothing
}
@VisibleForTesting
public ConfiguracionPersistente(DataSourceFactory database) {
this.database = database;
}
public DataSourceFactory getDatabase() {
return database;
}
@JsonIgnore
public String getDefaultSchema() {
return database.getProperties().get("hibernate.default_schema");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy