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
9575b4b7
Commit
9575b4b7
authored
Jul 26, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Polish Hibernate naming strategy doc"
Closes gh-9763
parent
eeee1bda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+11
-13
index.adoc
spring-boot-docs/src/main/asciidoc/index.adoc
+1
-0
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
9575b4b7
...
@@ -1693,19 +1693,17 @@ properties (with the prefix stripped) when the local `EntityManagerFactory` is c
...
@@ -1693,19 +1693,17 @@ properties (with the prefix stripped) when the local `EntityManagerFactory` is c
[[howto-configure-hibernate-naming-strategy]]
[[howto-configure-hibernate-naming-strategy]]
=== Configure Hibernate Naming Strategy
=== Configure Hibernate Naming Strategy
Hibernate uses http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#naming[two different naming strategies]
Hibernate uses {hibernate-documentation}#naming[two different naming strategies] to map
to map names in your object model to names in your database. Spring Boot provides properties for configuring
names from the object model to the corresponding database names. The fully qualified class
these naming strategies:
name of the physical and implicit strategy implementations can be configured using the
`spring.jpa.hibernate.naming.physical-strategy` and
* `spring.jpa.hibernate.naming.physical-strategy`
`spring.jpa.hibernate.naming.implicit-strategy` properties respectively.
* `spring.jpa.hibernate.naming.implicit-strategy`
Spring Boot configures the physical naming strategy with `SpringPhysicalNamingStrategy` by
The properties should be configured with the fully qualified class name of a strategy implementation.
default. This implementation provides the same table structure as Hibernate 4: all dots
are replaced by underscores and camel cases are replaced by underscores as well. By
Spring Boot configures `SpringPhysicalNamingStrategy` by default. This implementation provides the same table
default, all table names are generated in lower case but it is possible to override that
structure as Hibernate 4: all dots are replaced by underscores and camel cases are
flag if your schema requires it.
replaced by underscores as well. By default, all table names are generated in lower case
but it is possible to override that flag if your schema requires it.
Concretely, a `TelephoneNumber` entity will be mapped to the `telephone_number` table.
Concretely, a `TelephoneNumber` entity will be mapped to the `telephone_number` table.
...
...
spring-boot-docs/src/main/asciidoc/index.adoc
View file @
9575b4b7
...
@@ -52,6 +52,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
...
@@ -52,6 +52,7 @@ Phillip Webb; Dave Syer; Josh Long; Stéphane Nicoll; Rob Winch; Andy Wilkinson;
:ant-manual: http://ant.apache.org/manual
:ant-manual: http://ant.apache.org/manual
:code-examples: ../java/org/springframework/boot
:code-examples: ../java/org/springframework/boot
:gradle-user-guide: https://docs.gradle.org/3.4.1/userguide
:gradle-user-guide: https://docs.gradle.org/3.4.1/userguide
:hibernate-documentation: http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
:jetty-documentation: https://www.eclipse.org/jetty/documentation/9.4.x
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
:tomcat-documentation: https://tomcat.apache.org/tomcat-8.5-doc
// ======================================================================================
// ======================================================================================
...
...
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