Merge pull request #11337 from chaos2418/JIRA-7733
Spring Boot 2.5.x compatible updates in persistence-modules
This commit is contained in:
commit
594feae939
|
@ -5,7 +5,7 @@ spring.datasource.password=
|
|||
spring.jpa.hibernate.ddl-auto=create-drop
|
||||
spring.h2.console.enabled=true
|
||||
spring.h2.console.path=/h2-console
|
||||
spring.datasource.data=data-trans.sql
|
||||
spring.sql.init.data-locations=data-trans.sql
|
||||
|
||||
logging.level.org.hibernate.SQL=INFO
|
||||
logging.level.org.hibernate.type=INFO
|
||||
|
|
|
@ -5,7 +5,7 @@ spring.datasource.password=
|
|||
spring.jpa.hibernate.ddl-auto=create-drop
|
||||
spring.h2.console.enabled=true
|
||||
spring.h2.console.path=/h2-console
|
||||
spring.datasource.data=data-trans.sql
|
||||
spring.sql.init.data-locations=data-trans.sql
|
||||
|
||||
logging.level.org.hibernate.SQL=INFO
|
||||
logging.level.org.hibernate.type=INFO
|
||||
|
|
|
@ -13,4 +13,4 @@ hibernate.cache.use_query_cache=true
|
|||
hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory
|
||||
|
||||
spring.jpa.properties.hibernate.hbm2ddl.import_files=import_books.sql
|
||||
spring.datasource.data=import_*_users.sql
|
||||
spring.sql.init.data-locations=import_*_users.sql
|
|
@ -1 +1 @@
|
|||
spring.datasource.initialization-mode=never
|
||||
spring.sql.init.mode=never
|
|
@ -19,7 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@DataJpaTest(properties = "spring.datasource.data=classpath:insert_users.sql")
|
||||
@DataJpaTest(properties = "spring.sql.init.data-locations=classpath:insert_users.sql")
|
||||
public class UserRepositoryIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
|
|
|
@ -17,7 +17,7 @@ import static org.junit.Assert.assertEquals;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@DataJpaTest(properties="spring.datasource.data=classpath:import_entities.sql")
|
||||
@DataJpaTest(properties="spring.sql.init.data-locations=classpath:import_entities.sql")
|
||||
public class ArticleRepositoryIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
|
|
|
@ -1 +1 @@
|
|||
spring.datasource.data=classpath:db/import_joins.sql
|
||||
spring.sql.init.data-locations=classpath:db/import_joins.sql
|
||||
|
|
|
@ -21,7 +21,7 @@ import com.baeldung.boot.domain.Location;
|
|||
import com.baeldung.boot.domain.Store;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@DataJpaTest(properties="spring.datasource.data=classpath:import_entities.sql")
|
||||
@DataJpaTest(properties="spring.sql.init.data-locations=classpath:import_entities.sql")
|
||||
public class JpaRepositoriesIntegrationTest {
|
||||
@Autowired
|
||||
private LocationRepository locationRepository;
|
||||
|
|
Loading…
Reference in New Issue