removed some unneeded code; defaulted MetaDataFactory property

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425805 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2006-07-26 18:50:51 +00:00
parent 8c8a0a923d
commit 0bf2166ede
3 changed files with 5 additions and 6 deletions

View File

@ -90,9 +90,6 @@
pathsep=" "/> pathsep=" "/>
<java <java
classname="org.apache.openjpa.enhance.PCEnhancer"> classname="org.apache.openjpa.enhance.PCEnhancer">
<arg value="-MetaDataFactory"/>
<arg
value="org.apache.openjpa.persistence.PersistenceMetaDataFactory"/>
<arg line="${enhance.files}"/> <arg line="${enhance.files}"/>
<classpath> <classpath>
<path <path

View File

@ -3,10 +3,10 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0"> version="1.0">
<persistence-unit name="simple-emf-test" transaction-type="RESOURCE_LOCAL"> <persistence-unit name="simple-emf-test">
<!-- <!-- This is not needed if OpenJPA is the only persistence provider
<provider>kodo.persistence.PersistenceProviderImpl</provider> in the classpath.
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
--> -->

View File

@ -48,6 +48,8 @@ public class PersistenceProductDerivation
PersistenceMetaDataFactory.class.getName()); PersistenceMetaDataFactory.class.getName());
conf.metaFactoryPlugin.setAlias(ALIAS_EJB, conf.metaFactoryPlugin.setAlias(ALIAS_EJB,
PersistenceMetaDataFactory.class.getName()); PersistenceMetaDataFactory.class.getName());
conf.metaFactoryPlugin.setDefault(SPEC_JPA);
conf.metaFactoryPlugin.setString(SPEC_JPA);
} }
public void afterSpecificationSet(OpenJPAConfiguration c) { public void afterSpecificationSet(OpenJPAConfiguration c) {