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
d15f3548
Commit
d15f3548
authored
Dec 19, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
6121208c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
CloudFoundryActuatorAutoConfiguration.java
...e/cloudfoundry/CloudFoundryActuatorAutoConfiguration.java
+0
-1
SpringPhysicalNamingStrategy.java
.../boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java
+17
-4
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cloudfoundry/CloudFoundryActuatorAutoConfiguration.java
View file @
d15f3548
...
...
@@ -101,7 +101,6 @@ public class CloudFoundryActuatorAutoConfiguration {
/**
* Nested configuration for ignored requests if Spring Security is present.
*
*/
@ConditionalOnClass
(
WebSecurity
.
class
)
static
class
CloudFoundryIgnoredRequestConfiguration
{
...
...
spring-boot/src/main/java/org/springframework/boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java
View file @
d15f3548
...
...
@@ -73,11 +73,24 @@ public class SpringPhysicalNamingStrategy implements PhysicalNamingStrategy {
builder
.
insert
(
i
++,
'_'
);
}
}
return
getIdentifier
(
builder
.
toString
(),
name
.
isQuoted
(),
jdbcEnvironment
);
}
String
text
=
builder
.
toString
();
String
finalText
=
isCaseInsensitive
(
jdbcEnvironment
)
?
text
.
toLowerCase
(
Locale
.
ROOT
)
:
text
;
return
new
Identifier
(
finalText
,
name
.
isQuoted
());
/**
* Get an the identifier for the specified details. By default his method will return
* an identifier with the name adapted based on the result of
* {@link #isCaseInsensitive(JdbcEnvironment)}
* @param name the name of the identifier
* @param quoted if the identifier is quoted
* @param jdbcEnvironment the JDBC environment
* @return an identifier instance
*/
protected
Identifier
getIdentifier
(
String
name
,
boolean
quoted
,
JdbcEnvironment
jdbcEnvironment
)
{
if
(
isCaseInsensitive
(
jdbcEnvironment
))
{
name
=
name
.
toLowerCase
(
Locale
.
ROOT
);
}
return
new
Identifier
(
name
,
quoted
);
}
/**
...
...
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