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

com.github.zhengframework.mybatis.MyBatisConfig Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.mybatis;

import com.github.zhengframework.configuration.ConfigurationDefine;
import com.github.zhengframework.configuration.annotation.ConfigurationInfo;
import com.github.zhengframework.guice.ExposedPrivateModule;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.session.AutoMappingBehavior;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.LocalCacheScope;
import org.apache.ibatis.type.TypeHandler;

@Data
@NoArgsConstructor
@ConfigurationInfo(prefix = "zheng.mybatis", supportGroup = true)
public class MyBatisConfig implements ConfigurationDefine {

  private String environmentId;
  private boolean lazyLoadingEnabled = false;
  private boolean aggressiveLazyLoading = true;
  private boolean multipleResultSetsEnabled = true;
  private boolean useColumnLabel = true;
  private boolean cacheEnabled = true;
  private boolean useGeneratedKeys = false;
  private Integer defaultStatementTimeout;
  private ExecutorType executorType = ExecutorType.SIMPLE;
  private AutoMappingBehavior autoMappingBehavior = AutoMappingBehavior.PARTIAL;
  private boolean failFast = false;
  private String mapperClassPackages;
  private Collection> mapperClasses = new HashSet<>();
  private Collection> interceptorsClasses = new HashSet<>();
  private Collection>> handlersClasses = new HashSet<>();
  private LocalCacheScope localeCacheScope;
  private Boolean mapUnderscoreToCamelCase;
  private Class extraModuleClass;
  private String configFile;
  private Map properties = new HashMap<>();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy