public final class TableAnnotationTableNameConverter extends Object implements TableNameConverter
Gets the table name from the Table annotation. If no annotation is
present on the given entity then it will delegate to the configured TableNameConverter.
| Modifier and Type | Field and Description |
|---|---|
static Class<Table> |
TABLE_ANNOTATION |
| Constructor and Description |
|---|
TableAnnotationTableNameConverter(TableNameConverter delegateTableNameConverter) |
TableAnnotationTableNameConverter(TableNameConverter delegateTableNameConverter,
CanonicalClassNameTableNameConverter postProcessingTableNameConverter) |
public TableAnnotationTableNameConverter(TableNameConverter delegateTableNameConverter)
public TableAnnotationTableNameConverter(TableNameConverter delegateTableNameConverter, CanonicalClassNameTableNameConverter postProcessingTableNameConverter)
public String getName(Class<? extends RawEntity<?>> entityClass)
Table annotation if present or from the
delegate.getName in interface TableNameConverterentityClass - the entity from which to extract the table nameIllegalStateException - if the Table annotation value is invalid (null or
empty String)Copyright © 2007-2015. All Rights Reserved.