PhysicalNamingStrategy lets Hibernate transform logical database artifact names into physical names, enforcing conventions without repeating @Table mappings on every entity. section 5.3.1
Prefixing physical table names
Extend PhysicalNamingStrategyStandardImpl and override toPhysicalTableName() to return an Identifier prefixed with CE_. Enable the implementation with hibernate.physical_naming_strategy in persistence.xml or Spring Data JPA configuration.
The interface supports broader physical-schema customization:
- Customize columns, sequences, and other database artifacts through corresponding naming methods. section 5.3.1
- Prefer centralized conventions when manually specifying @Table names would be repetitive or easy to forget. section 5.3.1
