Merge branch '2.2.x' into 2.3.x
Closes gh-24060
This commit is contained in:
@@ -1773,10 +1773,12 @@ The fully qualified class name of the physical and the implicit strategy impleme
|
||||
Alternatively, if `ImplicitNamingStrategy` or `PhysicalNamingStrategy` beans are available in the application context, Hibernate will be automatically configured to use them.
|
||||
|
||||
By default, Spring Boot configures the physical naming strategy with `SpringPhysicalNamingStrategy`.
|
||||
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.
|
||||
By default, all table names are generated in lower case, but it is possible to override that flag if your schema requires it.
|
||||
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:
|
||||
|
||||
For example, a `TelephoneNumber` entity is mapped to the `telephone_number` table.
|
||||
[source,java,indent=0]
|
||||
----
|
||||
include::{code-examples}/jpa/CaseSensitiveSpringPhysicalNamingStrategyExample.java[tag=naming-strategy]
|
||||
----
|
||||
|
||||
If you prefer to use Hibernate 5's default instead, set the following property:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user