Java 类org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:JpaPropertiesTests.java   
@Test
public void hibernate5NoCustomNamingStrategy() throws Exception {
    JpaProperties properties = load(HibernateVersion.V5);
    Map<String, String> hibernateProperties = properties
            .getHibernateProperties(mockStandaloneDataSource());
    assertThat(hibernateProperties)
            .doesNotContainKeys("hibernate.ejb.naming_strategy");
    assertThat(hibernateProperties).containsEntry(
            "hibernate.physical_naming_strategy",
            SpringPhysicalNamingStrategy.class.getName());
    assertThat(hibernateProperties).containsEntry(
            "hibernate.implicit_naming_strategy",
            SpringImplicitNamingStrategy.class.getName());
}
项目:spring-boot-concourse    文件:JpaPropertiesTests.java   
@Test
public void hibernate5NoCustomNamingStrategy() throws Exception {
    JpaProperties properties = load(HibernateVersion.V5);
    Map<String, String> hibernateProperties = properties
            .getHibernateProperties(mockStandaloneDataSource());
    assertThat(hibernateProperties)
            .doesNotContainKeys("hibernate.ejb.naming_strategy");
    assertThat(hibernateProperties).containsEntry(
            "hibernate.physical_naming_strategy",
            SpringPhysicalNamingStrategy.class.getName());
    assertThat(hibernateProperties).containsEntry(
            "hibernate.implicit_naming_strategy",
            SpringImplicitNamingStrategy.class.getName());
}