Added getMappings method to SingleEMFTestCase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Dick 2009-07-14 17:27:57 +00:00
parent 17a0c1d9b2
commit 0927c83f78
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public abstract class SingleEMFTestCase
protected OpenJPAEntityManagerFactorySPI emf; protected OpenJPAEntityManagerFactorySPI emf;
/** /**
* Call {@link #setUp(Object...)} with no arguments so that the emf * Call {@link #setUp(Object... props)} with no arguments so that the emf
* set-up happens even if <code>setUp()</code> is not called from the * set-up happens even if <code>setUp()</code> is not called from the
* subclass. * subclass.
*/ */
@ -152,4 +152,8 @@ public abstract class SingleEMFTestCase
return emf.getConfiguration().getMetaDataRepositoryInstance() return emf.getConfiguration().getMetaDataRepositoryInstance()
.getMetaData(t, null, true).getTypeAlias(); .getMetaData(t, null, true).getTypeAlias();
} }
protected ClassMapping [] getMappings() {
return (ClassMapping [] ) emf.getConfiguration().getMetaDataRepositoryInstance().getMetaDatas();
}
} }