[JAVA-13976] Fix integration tests after Spring Boot upgrade to 2.7.2 (#12647)

This commit is contained in:
Haroon Khan
2022-08-25 17:00:13 +01:00
committed by GitHub
parent 1a5a959265
commit c779eb6331
49 changed files with 150 additions and 118 deletions

View File

@@ -13,6 +13,6 @@ public interface CompanyRepository extends JpaRepository<Company, Integer> {
@Query("SELECT C FROM Company C WHERE C.contactPerson.firstName = ?1")
List<Company> findByContactPersonFirstNameWithJPQL(String firstName);
@Query(value = "SELECT * FROM company WHERE contact_first_name = ?1", nativeQuery = true)
@Query(value = "SELECT * FROM \"company\" WHERE \"contact_first_name\" = ?1", nativeQuery = true)
List<Company> findByContactPersonFirstNameWithNativeQuery(String firstName);
}

View File

@@ -4,3 +4,5 @@ spring.jpa.properties.hibernate.jdbc.batch_size=4
spring.jpa.properties.hibernate.order_inserts=true
spring.jpa.properties.hibernate.order_updates=true
spring.jpa.properties.hibernate.generate_statistics=true
spring.jpa.properties.hibernate.globally_quoted_identifiers=true