return super.createEMF(newProps);
}
private void validateTableName(OpenJPAEntityManagerFactorySPI emf) {
JDBCConfiguration conf = (JDBCConfiguration) emf.getConfiguration();
DBDictionary dict = conf.getDBDictionaryInstance();
ClassMapping mapping = (ClassMapping)conf.
getMetaDataRepositoryInstance().
getMetaData(EntityVeryLongNames.class,getClass().
getClassLoader(), true);
Table table = mapping.getTable();
assertTrue(table.getName().length() > 0);
assertTrue(table.getName().length() <= dict.maxTableNameLength);
validateColumnNames(table, dict);
mapping = (ClassMapping)conf.
getMetaDataRepositoryInstance().
getMetaData(EntityReservedWords.class,getClass().
getClassLoader(), true);
table = mapping.getTable();
assertTrue(table.getName().length() > 0);