com.github.zhengframework.jpa.JpaConfig Maven / Gradle / Ivy
package com.github.zhengframework.jpa;
import com.github.zhengframework.configuration.ConfigurationDefine;
import com.github.zhengframework.configuration.annotation.ConfigurationInfo;
import com.github.zhengframework.guice.ExposedPrivateModule;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@ToString
@Data
@NoArgsConstructor
@ConfigurationInfo(prefix = "zheng.jpa", supportGroup = true)
public class JpaConfig implements ConfigurationDefine {
private String persistenceUnitName;
private String driverClassName;
private String url;
private String username;
private String password;
private String managedClassPackages;
private Set managedClasses = new HashSet<>();
private Map properties = new HashMap<>();
private Class extends ExposedPrivateModule> extraModuleClass;
}