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

com.cvent.dropwizard.mybatis.MyBatisConfiguration Maven / Gradle / Ivy

Go to download

An open source bridge layer so that you can use mybatis with dropwizard + other useful utility methods often used within an enterprise.

There is a newer version: 4.0.4
Show newest version
package com.cvent.dropwizard.mybatis;

import com.cvent.dropwizard.mybatis.datasource.ConfigurableLazyDataSourceFactory;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by jmorley on 9/22/14.
 */
public class MyBatisConfiguration {

    @JsonProperty
    private String configFile;

    @JsonProperty
    private final ConfigurableLazyDataSourceFactory config = new ConfigurableLazyDataSourceFactory();

    @NotEmpty
    @JsonProperty
    private String environment;

    public String getConfigFile() {
        return configFile;
    }

    public ConfigurableLazyDataSourceFactory getConfig() {
        return config;
    }

    public String getEnvironment() {
        return environment;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy