All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ec.gob.senescyt.sniese.commons.configurations.ConfiguracionPersistente Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
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