Revert "Change default for new_generator_mappings to true"
This reverts commit 735dbc4583
.
This commit is contained in:
parent
20f201b57a
commit
0ab7c25d9f
|
@ -202,7 +202,7 @@ public class JpaProperties {
|
|||
this.useNewIdGeneratorMappings.toString());
|
||||
}
|
||||
else if (!result.containsKey(USE_NEW_ID_GENERATOR_MAPPINGS)) {
|
||||
result.put(USE_NEW_ID_GENERATOR_MAPPINGS, "true");
|
||||
result.put(USE_NEW_ID_GENERATOR_MAPPINGS, "false");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,17 +108,17 @@ public class JpaPropertiesTests {
|
|||
Map<String, String> hibernateProperties = properties
|
||||
.getHibernateProperties(mockStandaloneDataSource());
|
||||
assertThat(hibernateProperties)
|
||||
.containsEntry(AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "true");
|
||||
.containsEntry(AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "false");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void useNewIdGeneratorMappingsFalse() throws Exception {
|
||||
public void useNewIdGeneratorMappingsTrue() throws Exception {
|
||||
JpaProperties properties = load(
|
||||
"spring.jpa.hibernate.use-new-id-generator-mappings:false");
|
||||
"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, "false");
|
||||
.containsEntry(AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS, "true");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue