| Improved naming conventions between list fields and database columns
which enables to defined custom prefixes for database column names.
If one is using multiple tables (with aliases) in one SELECT,
PrefixMapNamingStrategy.addPrefix(String,String) should be called to transform list field names
correspondingly into database column names.
Field names are transformed into database column names as following:
- The full name is split into prefix and suffix (following to the last dot).
- If
PrefixMapNamingStrategy.addPrefix(String,String) has been called with the current prefix
it is replaced with the corresponding String (table alias).
- Otherwise all dots in the prefix and suffix are converted into underscores.
- Before each upper case letter followed by lower case an underscore is inserted.
Field names are transformed into database column aliases as following:
- All dots are converted into underscores.
- Before each upper case letter followed by lower case an underscore is inserted.
See Also: StandardNamingStrategy author: Rein Raudjärv since: 1.1 |