Skip to content
Snippets Groups Projects
Commit 8b6193fc authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

moved attribute to top of class following codacy hint

parent e7df281a
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,9 @@ import javax.sql.DataSource;
@EntityScan(basePackages = "eu.hbp.mip.model")
public class PersistenceConfiguration {
@Value("#{'${spring.scienceDatasource.main-table:adni_merge}'}")
private String scienceMainTable;
@Primary
@Bean(name = "portalDatasource")
@ConfigurationProperties(prefix="spring.portalDatasource")
......@@ -59,9 +62,6 @@ public class PersistenceConfiguration {
return new JdbcTemplate(scienceDataSource());
}
@Value("#{'${spring.scienceDatasource.main-table:adni_merge}'}")
private String scienceMainTable;
@Bean(name = "entityManagerFactory")
@DependsOn("flyway")
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment