/** * Returns a new {@link OpenJPAEntityManagerFactory} specified by * <code>name</code> in an XML configuration file at the resource location * <code>resource</code>. If <code>name</code> is <code>null</code>, uses * the first resource found in the specified location, regardless of the * name specified in the XML resource or the name of the jar that the * resource is contained in. If <code>resource</code> is <code>null</code>, * uses the spec-defined <code>META-INF/persistence.xml</code> resource. * This method only resolves {@link OpenJPAEntityManagerFactory} instances. */ public static OpenJPAEntityManagerFactory createEntityManagerFactory (String name, String resource) { return createEntityManagerFactory(name, resource, null); }
/** * Returns a new {@link OpenJPAEntityManagerFactory} specified by * <code>name</code> in an XML configuration file at the resource location * <code>resource</code>. If <code>name</code> is <code>null</code>, uses * the first resource found in the specified location, regardless of the * name specified in the XML resource or the name of the jar that the * resource is contained in. If <code>resource</code> is <code>null</code>, * uses the spec-defined <code>META-INF/persistence.xml</code> resource. * This method only resolves {@link OpenJPAEntityManagerFactory} instances. */ public static OpenJPAEntityManagerFactory createEntityManagerFactory (String name, String resource) { return createEntityManagerFactory(name, resource, null); }
/** * Returns a new {@link OpenJPAEntityManagerFactory} specified by * <code>name</code> in an XML configuration file at the resource location * <code>resource</code>. If <code>name</code> is <code>null</code>, uses * the first resource found in the specified location, regardless of the * name specified in the XML resource or the name of the jar that the * resource is contained in. If <code>resource</code> is <code>null</code>, * uses the spec-defined <code>META-INF/persistence.xml</code> resource. * This method only resolves {@link OpenJPAEntityManagerFactory} instances. */ public static OpenJPAEntityManagerFactory createEntityManagerFactory (String name, String resource) { return createEntityManagerFactory(name, resource, null); }
/** * Returns a new {@link OpenJPAEntityManagerFactory} specified by * <code>name</code> in an XML configuration file at the resource location * <code>resource</code>. If <code>name</code> is <code>null</code>, uses * the first resource found in the specified location, regardless of the * name specified in the XML resource or the name of the jar that the * resource is contained in. If <code>resource</code> is <code>null</code>, * uses the spec-defined <code>META-INF/persistence.xml</code> resource. * This method only resolves {@link OpenJPAEntityManagerFactory} instances. */ public static OpenJPAEntityManagerFactory createEntityManagerFactory (String name, String resource) { return createEntityManagerFactory(name, resource, null); }
/** * Returns a new {@link OpenJPAEntityManagerFactory} specified by * <code>name</code> in an XML configuration file at the resource location * <code>resource</code>. If <code>name</code> is <code>null</code>, uses * the first resource found in the specified location, regardless of the * name specified in the XML resource or the name of the jar that the * resource is contained in. If <code>resource</code> is <code>null</code>, * uses the spec-defined <code>META-INF/persistence.xml</code> resource. * This method only resolves {@link OpenJPAEntityManagerFactory} instances. */ public static OpenJPAEntityManagerFactory createEntityManagerFactory (String name, String resource) { return createEntityManagerFactory(name, resource, null); }