Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
0ab7c25d
Commit
0ab7c25d
authored
Mar 25, 2017
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Change default for new_generator_mappings to true"
This reverts commit
735dbc45
.
parent
20f201b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
JpaProperties.java
...ngframework/boot/autoconfigure/orm/jpa/JpaProperties.java
+1
-1
JpaPropertiesTests.java
...mework/boot/autoconfigure/orm/jpa/JpaPropertiesTests.java
+4
-4
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java
View file @
0ab7c25d
...
@@ -202,7 +202,7 @@ public class JpaProperties {
...
@@ -202,7 +202,7 @@ public class JpaProperties {
this
.
useNewIdGeneratorMappings
.
toString
());
this
.
useNewIdGeneratorMappings
.
toString
());
}
}
else
if
(!
result
.
containsKey
(
USE_NEW_ID_GENERATOR_MAPPINGS
))
{
else
if
(!
result
.
containsKey
(
USE_NEW_ID_GENERATOR_MAPPINGS
))
{
result
.
put
(
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
result
.
put
(
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
fals
e"
);
}
}
}
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/JpaPropertiesTests.java
View file @
0ab7c25d
...
@@ -108,17 +108,17 @@ public class JpaPropertiesTests {
...
@@ -108,17 +108,17 @@ public class JpaPropertiesTests {
Map
<
String
,
String
>
hibernateProperties
=
properties
Map
<
String
,
String
>
hibernateProperties
=
properties
.
getHibernateProperties
(
mockStandaloneDataSource
());
.
getHibernateProperties
(
mockStandaloneDataSource
());
assertThat
(
hibernateProperties
)
assertThat
(
hibernateProperties
)
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
fals
e"
);
}
}
@Test
@Test
public
void
useNewIdGeneratorMappings
Fals
e
()
throws
Exception
{
public
void
useNewIdGeneratorMappings
Tru
e
()
throws
Exception
{
JpaProperties
properties
=
load
(
JpaProperties
properties
=
load
(
"spring.jpa.hibernate.use-new-id-generator-mappings:
fals
e"
);
"spring.jpa.hibernate.use-new-id-generator-mappings:
tru
e"
);
Map
<
String
,
String
>
hibernateProperties
=
properties
Map
<
String
,
String
>
hibernateProperties
=
properties
.
getHibernateProperties
(
mockStandaloneDataSource
());
.
getHibernateProperties
(
mockStandaloneDataSource
());
assertThat
(
hibernateProperties
)
assertThat
(
hibernateProperties
)
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
fals
e"
);
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
}
}
@Test
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment