com.cvent.dropwizard.mybatis.MyBatisConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-mybatis Show documentation
Show all versions of dropwizard-mybatis Show documentation
An open source bridge layer so that you can use mybatis with dropwizard + other useful utility methods often used within an enterprise.
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