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

io.robe.hibernate.HibernateConfiguration Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.hibernate;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.db.DataSourceFactory;
import io.dropwizard.db.DatabaseConfiguration;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

public class HibernateConfiguration implements DatabaseConfiguration {

    @Valid
    @NotNull
    @JsonProperty("database")
    private DataSourceFactory database = new DataSourceFactory();

    @Override
    public DataSourceFactory getDataSourceFactory(Configuration configuration) {
        return database;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy