NamingStrategy « cfg « JPA Q&A

1. What's the use of "net.sf.hibernate.cfg.NamingStrategy&

The interface net.sf.hibernate.cfg.NamingStrategy allows you to specify a "naming standard" for database objects. You may provide rules for automatically generating database identifiers from Java identifiers or for processing "logical" column and table names given in the mapping file into "physical" table and column names. This feature helps reduce the verbosity of the mapping document, eliminating repetitive noise (TBL_ prefixes, for example). ...

2. NamingStrategy in hibernate.cfg.xml