mirror of https://github.com/apache/openjpa.git
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:
parent
17a0c1d9b2
commit
0927c83f78
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue