improve the example PhysicalNamingStrategy implementation in user guide

Description

The Example PhysicalNamingStrategy implementation (https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#naming) is the first code example. Generally speaking it is good but there are quite some room for improvement, including:

  • PhysicalNamingStrategyStandardImpl could be used as the base class to extend as opposed to PhysicalNamingStrategy interface to implement;

  • the code could be simplified dramatically by existing commons util method;

  • there might be some code logic imperfection.

Environment

None

Activity

Show:
Nathan Xu
September 7, 2020, 10:59 PM

PR created at:

Assignee

Nathan Xu

Reporter

Nathan Xu

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure