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
735dbc45
Commit
735dbc45
authored
Mar 24, 2017
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default for new_generator_mappings to true
Closes gh-7612
parent
aff1f18f
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 @
735dbc45
...
...
@@ -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
,
"
fals
e"
);
result
.
put
(
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
}
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/JpaPropertiesTests.java
View file @
735dbc45
...
...
@@ -108,17 +108,17 @@ public class JpaPropertiesTests {
Map
<
String
,
String
>
hibernateProperties
=
properties
.
getHibernateProperties
(
mockStandaloneDataSource
());
assertThat
(
hibernateProperties
)
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
fals
e"
);
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
}
@Test
public
void
useNewIdGeneratorMappings
Tru
e
()
throws
Exception
{
public
void
useNewIdGeneratorMappings
Fals
e
()
throws
Exception
{
JpaProperties
properties
=
load
(
"spring.jpa.hibernate.use-new-id-generator-mappings:
tru
e"
);
"spring.jpa.hibernate.use-new-id-generator-mappings:
fals
e"
);
Map
<
String
,
String
>
hibernateProperties
=
properties
.
getHibernateProperties
(
mockStandaloneDataSource
());
assertThat
(
hibernateProperties
)
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
tru
e"
);
.
containsEntry
(
AvailableSettings
.
USE_NEW_ID_GENERATOR_MAPPINGS
,
"
fals
e"
);
}
@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