pm.getTransaction().commit();
pm.close();
JDBCConfiguration conf = (JDBCConfiguration) ((OpenJPAEntityManagerFactorySPI) pm).getConfiguration();
DBDictionary dict = conf.getDBDictionaryInstance();
MappingRepository repos = conf.getMappingRepositoryInstance();
ClassMapping mappingA = repos.getMapping(AttachD.class,
pm.getClassLoader(), true);
String tableNameA = mappingA.getTable().getName();
String fullTableNameA = dict.getFullName(mappingA.getTable(), false);
String relColNameA = mappingA.getFieldMapping("a").
getColumns()[0].getName();
ClassMapping mappingD = repos.getMapping(AttachA.class,
pm.getClassLoader(), true);
String tableNameD = mappingD.getTable().getName();
String fullTableNameD = dict.getFullName(mappingD.getTable(), false);
String pkColNameD = mappingD.getTable().getPrimaryKey().
getColumns()[0].getName();