protected String getTableName ( PersistentEntity domainClass , String sessionFactoryBeanName ) { Mapping m = getMapping ( domainClass ) ; String tableName = null ; if ( m != null && m . getTableName ( ) != null ) { tableName = m . getTableName ( ) ; } if ( tableName == null ) { String shortName = domainClass . getJavaClass ( ) . getSimpleName ( ) ; PersistentEntityNamingStrategy namingStrategy = this . namingStrategy ; if ( namingStrategy != null ) { tableName = namingStrategy . resolveTableName ( domainClass ) ; } if ( tableName == null ) { tableName = getNamingStrategy ( sessionFactoryBeanName ) . classToTableName ( shortName ) ; } } return tableName ; }
Evaluates the table name for the given property