public interface NamingConversion
For example: //OrderDetail.class map to OrderDetail database table, entity field OrderPrice map to OrderPrice column Dialect.setGlobalNamingRule(NamingRule.NONE); //OrderDetail.class map to order_detail database table, entity field OrderPrice map to order_price column Dialect.setGlobalNamingRule(NamingRule.LOWER_CASE_UNDERSCORE); // //OrderDetail.class map to ORDER_DETAIL database table, entity field OrderPrice map to ORDER_PRICE column Dialect.setGlobalNamingRule(NamingRule.UPPER_CASE_UNDERSCORE);
| Modifier and Type | Interface and Description |
|---|---|
static class |
NamingConversion.LowerCaseUnderscoreConversion |
static class |
NamingConversion.UpperCaseUnderscoreConversion |
| Modifier and Type | Field and Description |
|---|---|
static NamingConversion |
LOWER_CASE_UNDERSCORE |
static NamingConversion |
NONE |
static NamingConversion |
UPPER_CASE_UNDERSCORE |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName(String entityField)
Get column name from entity field
|
String |
getTableName(Class<?> clazz)
Get table name from entity class
|
static final NamingConversion NONE
static final NamingConversion LOWER_CASE_UNDERSCORE
static final NamingConversion UPPER_CASE_UNDERSCORE
Copyright © 2022. All rights reserved.