diff options
author | ssmith | 2008-10-29 18:33:32 +0000 |
---|---|---|
committer | ssmith | 2008-10-29 18:33:32 +0000 |
commit | 86908ad2ba39844d92d172da064f854c4d49dd7c (patch) | |
tree | a214f8710e52b722bc8b237beabfecf40d2bc724 /tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests | |
parent | 817e7d9d76b808a237a8c6b35a4cc9ee10a2bc60 (diff) | |
download | org.eclipse.emf.teneo-86908ad2ba39844d92d172da064f854c4d49dd7c.tar.gz org.eclipse.emf.teneo-86908ad2ba39844d92d172da064f854c4d49dd7c.tar.xz org.eclipse.emf.teneo-86908ad2ba39844d92d172da064f854c4d49dd7c.zip |
Extracted classloader into local variable.
Diffstat (limited to 'tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests')
-rw-r--r-- | tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/JPATest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/JPATest.java b/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/JPATest.java index 8d4ab7c48..e39f33be1 100644 --- a/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/JPATest.java +++ b/tests/org.eclipse.emf.teneo.eclipselink.examples.library.orm.tests/src/org/eclipse/emf/teneo/eclipselink/examples/library/orm/tests/JPATest.java @@ -33,7 +33,8 @@ public abstract class JPATest extends ManagedTest { public EntityManagerFactory getEntityManagerFactory() { if (factory == null) { HashMap<String, Object> properties = new HashMap<String, Object>(); - properties.put(PersistenceUnitProperties.CLASSLOADER, this.getClass().getClassLoader()); + ClassLoader classLoader = this.getClass().getClassLoader(); + properties.put(PersistenceUnitProperties.CLASSLOADER, classLoader); factory = new PersistenceProvider().createEntityManagerFactory(getPersistenceUnitName(), properties); } return factory; |