more on XxxxNamingStrategy

This commit is contained in:
Gavin 2023-05-07 18:41:05 +02:00 committed by Christian Beikov
parent b77d5bd3b8
commit 3c5ebc4a76
2 changed files with 7 additions and 4 deletions

View File

@ -309,14 +309,17 @@ annotations which we'll discuss below in <<mapping-entity-classes>>:
| `hibernate.default_schema` | A default schema name for entities which do not explicitly declare one
| `hibernate.default_catalog` | A default catalog name for entities which do not explicitly declare one
| `hibernate.physical_naming_strategy` | A `PhysicalNamingStrategy` implementing your database naming standards
| `hibernate.implicit_naming_strategy` | An `ImplicitNamingStrategy` which specifies how "logical" names of
relational objects should be inferred when no name is specified in
annotations
|===
[TIP]
.Implement your naming standards as a `PhysicalNamingStrategy`
====
Writing your own `PhysicalNamingStrategy` is an especially good
way to reduce the clutter of annotations on your entity classes, and
we think you should do it for any nontrivial data model.
Writing your own `PhysicalNamingStrategy` and/or `ImplicitNamingStrategy` is an especially good way to reduce the clutter of annotations on your entity classes, and we think you should do it for any nontrivial data model.
Please refer to the Javadoc for these interfaces for more information about the division of responsibility between them.
====
=== Nationalized character data in SQL Server

View File

@ -45,7 +45,7 @@ Hibernate was the inspiration behind the _Java_ (now _Jakarta_) _Persistence API
.The early history of Hibernate and JPA
====
The Hibernate project began in 2001, when Gavin King's frustration with Entity Beans in EJB 2 boiled over.
It quickly overtook other open source and commercial contenders to become the most popular persistence solution for Java, and the book _Hibernate in Action_, written with Christian Bauer, was an influential best-seller.
It quickly overtook other open source and commercial contenders to become the most popular persistence solution for Java, and the book _Hibernate in Action_, written with Christian Bauer, was an influential bestseller.
In 2004, Gavin and Christian joined a tiny startup called JBoss, and other early Hibernate contributors soon followed: Max Rydahl Andersen, Emmanuel Bernard, Steve Ebersole, and Sanne Grinovero.