Created
December 15, 2014 12:55
-
-
Save przodownikR1/285fa50573649b712d5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EnableJpaRepositories(basePackages = "pl.java.scalatech.repository") | |
@ComponentScan(basePackages="pl.java.scalatech.repository",useDefaultFilters=false,includeFilters={@Filter(Repository.class)}) | |
@PropertySource(value="classpath:spring-data.properties") | |
@Profile(value="test") | |
@PropertySource("classpath:application.properties") | |
@Slf4j | |
public class JpaEmbeddedConfig { | |
@Autowired | |
private Environment env; | |
@Value("${dataSource.driverClassName}") | |
private String driver; | |
@Value("${dataSource.url}") | |
private String url; | |
@Value("${dataSource.username}") | |
private String username; | |
@Value("${dataSource.password}") | |
private String password; | |
@Value("${hibernate.dialect}") | |
private String dialect; | |
@Value("${hibernate.hbm2ddl.auto}") | |
private Boolean hbm2ddlAuto; | |
@Value("${boneCp.partition.count}") | |
private int partitionCount; | |
@Value("${boneCp.partition.minConnectionsPerPartition}") | |
private int minConnectionsPerPartition; | |
@Value("${boneCp.partition.maxConnectionsPerPartition}") | |
private int maxConnectionsPerPartition; | |
@Value("${hibernate.show.sql}") | |
private Boolean showSql; | |
@Value("${jpa.package}") | |
private String jpaPackage; | |
//omit rest of code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment