Skip to content

Commit 09f51f3

Browse files
committed
Update docs to reflect use of CamelCaseToUnderscoresNamingStrategy
Closes gh-29743
1 parent 4b33ea7 commit 09f51f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-access.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,11 @@ Hibernate uses {hibernate-docs}#naming[two different naming strategies] to map n
239239
The fully qualified class name of the physical and the implicit strategy implementations can be configured by setting the `spring.jpa.hibernate.naming.physical-strategy` and `spring.jpa.hibernate.naming.implicit-strategy` properties, respectively.
240240
Alternatively, if `ImplicitNamingStrategy` or `PhysicalNamingStrategy` beans are available in the application context, Hibernate will be automatically configured to use them.
241241

242-
By default, Spring Boot configures the physical naming strategy with `SpringPhysicalNamingStrategy`.
243-
This implementation provides the same table structure as Hibernate 4: all dots are replaced by underscores and camel casing is replaced by underscores as well. Additionally, by default, all table names are generated in lower case. For example, a `TelephoneNumber` entity is mapped to the `telephone_number` table. If your schema requires mixed-case identifiers, define a custom `SpringPhysicalNamingStrategy` bean, as shown in the following example:
242+
By default, Spring Boot configures the physical naming strategy with `CamelCaseToUnderscoresNamingStrategy`.
243+
Using this strategy, all dots are replaced by underscores and camel casing is replaced by underscores as well.
244+
Additionally, by default, all table names are generated in lower case.
245+
For example, a `TelephoneNumber` entity is mapped to the `telephone_number` table.
246+
If your schema requires mixed-case identifiers, define a custom `CamelCaseToUnderscoresNamingStrategy` bean, as shown in the following example:
244247

245248
[source,java,indent=0,subs="verbatim"]
246249
----

0 commit comments

Comments
 (0)