Example usage for org.hibernate.cfg AvailableSettings USE_NEW_ID_GENERATOR_MAPPINGS

List of usage examples for org.hibernate.cfg AvailableSettings USE_NEW_ID_GENERATOR_MAPPINGS

Introduction

In this page you can find the example usage for org.hibernate.cfg AvailableSettings USE_NEW_ID_GENERATOR_MAPPINGS.

Prototype

String USE_NEW_ID_GENERATOR_MAPPINGS

To view the source code for org.hibernate.cfg AvailableSettings USE_NEW_ID_GENERATOR_MAPPINGS.

Click Source Link

Document

Setting which indicates whether or not the new org.hibernate.id.IdentifierGenerator are used for AUTO, TABLE and SEQUENCE.

Usage

From source file:org.springframework.boot.autoconfigure.orm.jpa.JpaPropertiesTests.java

License:Apache License

@Test
public void useNewIdGeneratorMappingsTrue() throws Exception {
    JpaProperties properties = load(HibernateVersion.V5,
            "spring.jpa.hibernate.use-new-id-generator-mappings:true");
    Map<String, String> hibernateProperties = properties.getHibernateProperties(mockStandaloneDataSource());
    assertThat(hibernateProperties).containsEntry(AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "true");
}