java.lang.Object | |
↳ | org.hibernate.cfg.ObjectNameNormalizer |
Provides centralized normalization of how database object names are handled.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ObjectNameNormalizer.NamingStrategyHelper | Helper contract for dealing with NamingStrategy in different situations. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs the actual contract of normalizing a database name.
| |||||||||||
Allow normalizing of just the quoting aspect of identifiers.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the current
NamingStrategy . | |||||||||||
Retrieve whether the user requested that all database identifiers be quoted.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Performs the actual contract of normalizing a database name.
explicitName | The name the user explicitly gave for the database object. |
---|---|
helper | The NamingStrategy helper. |
Allow normalizing of just the quoting aspect of identifiers. This is useful for schema and catalog in terms of initially making this public.
This implements the rules set forth in JPA 2 (section "2.13 Naming of Database Objects") which states that the double-quote (") is the character which should be used to denote a quoted identifier. Here, we handle recognizing that and converting it to the more elegant bactick (`) approach used in Hibernate.. Additionally we account for applying what JPA2 termsidentifier | The identifier to be quoting-normalized. |
---|
Get the current NamingStrategy
.
NamingStrategy
.
Retrieve whether the user requested that all database identifiers be quoted.