commit
This commit is contained in:
@@ -52,7 +52,7 @@ public class PrimaryJpaConfig {
|
||||
|
||||
public static final String TRANSACTION_MANAGER = "primaryTransactionManager";
|
||||
public static final String ENTITY_MANAGER_FACTORY = "primaryEntityManagerFactory";
|
||||
private static final String BASE_PACKAGE = "com.spring.domain";
|
||||
public static final String BASE_PACKAGE = "com.spring.domain";
|
||||
private static final String PERSISTENCE_UNIT = "primaryPersistenceUnit";
|
||||
|
||||
private final JpaProperties jpaProperties;
|
||||
|
||||
@@ -53,7 +53,7 @@ public class SecondaryJpaConfig {
|
||||
|
||||
public static final String TRANSACTION_MANAGER = "secondaryTransactionManager";
|
||||
public static final String ENTITY_MANAGER_FACTORY = "secondaryEntityManagerFactory";
|
||||
private static final String BASE_PACKAGE = "com.spring.domain";
|
||||
public static final String BASE_PACKAGE = "com.spring.domain";
|
||||
private static final String PERSISTENCE_UNIT = "secondaryPersistenceUnit";
|
||||
|
||||
private final JpaProperties jpaProperties;
|
||||
|
||||
@@ -43,10 +43,10 @@ import com.spring.infra.db.orm.mybatis.annotation.PrimaryMapper;
|
||||
)
|
||||
public class PrimaryMybatisConfig {
|
||||
|
||||
private static final String BASE_PACKAGE = "com.spring.domain.*.mapper";
|
||||
public static final String BASE_PACKAGE = "com.spring.domain.*.mapper";
|
||||
public static final String SESSION_FACTORY = "primarySqlSessionFactory";
|
||||
private static final String ALIASES_PACKAGE = "com.spring.domain.*.dto,com.spring.domain.*.entity";
|
||||
private static final String MAPPER_RESOURCES = "classpath:mapper/**/*.xml";
|
||||
private static final String SESSION_FACTORY = "primarySqlSessionFactory";
|
||||
|
||||
/**
|
||||
* 주 데이터베이스용 SqlSessionFactory를 생성합니다.
|
||||
|
||||
@@ -42,10 +42,10 @@ import com.spring.infra.db.orm.mybatis.annotation.SecondaryMapper;
|
||||
)
|
||||
public class SecondaryMybatisConfig {
|
||||
|
||||
private static final String BASE_PACKAGE = "com.spring.domain.*.mapper";
|
||||
public static final String BASE_PACKAGE = "com.spring.domain.*.mapper";
|
||||
public static final String SESSION_FACTORY = "secondarySqlSessionFactory";
|
||||
private static final String ALIASES_PACKAGE = "com.spring.domain.*.dto,com.spring.domain.*.entity";
|
||||
private static final String MAPPER_RESOURCES = "classpath:mapper/**/*.xml";
|
||||
private static final String SESSION_FACTORY = "secondarySqlSessionFactory";
|
||||
|
||||
/**
|
||||
* 보조 데이터베이스용 SqlSessionFactory를 생성합니다.
|
||||
|
||||
Reference in New Issue
Block a user