parent
8d3d16b235
commit
eeee1bdae5
|
|
@ -1693,8 +1693,16 @@ properties (with the prefix stripped) when the local `EntityManagerFactory` is c
|
|||
|
||||
[[howto-configure-hibernate-naming-strategy]]
|
||||
=== Configure Hibernate Naming Strategy
|
||||
Hibernate defines `Physical` and `Implicit` naming strategies. Spring Boot configures
|
||||
`SpringPhysicalNamingStrategy` by default. This implementation provides the same table
|
||||
Hibernate uses http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#naming[two different naming strategies]
|
||||
to map names in your object model to names in your database. Spring Boot provides properties for configuring
|
||||
these naming strategies:
|
||||
|
||||
* `spring.jpa.hibernate.naming.physical-strategy`
|
||||
* `spring.jpa.hibernate.naming.implicit-strategy`
|
||||
|
||||
The properties should be configured with the fully qualified class name of a strategy implementation.
|
||||
|
||||
Spring Boot configures `SpringPhysicalNamingStrategy` by 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 default, all table names are generated in lower case
|
||||
but it is possible to override that flag if your schema requires it.
|
||||
|
|
|
|||
Loading…
Reference in New Issue