/** * Creates a new instance of a DbConnectionFactory. The factory loads the persistence.xml file * which must be found at '/META-INF/persistence.xml'. * @return DbConnectionFactory instance */ public static DbConnectionFactory createInstance() { return DbConnectionFactoryLoader.createInstance("/META-INF/persistence.xml"); }
/** * Gets an instance of DbConnectionFactory that connects to a Derby Test DB. * <p> * The factory contains one connection named 'Derby InMemory-DB' * @return DbConnectionFactory instance */ public static DbConnectionFactory getDerbyTestDbConnectionFactory() { return DbConnectionFactoryLoader.createInstance("/META-INF/ju-testing_persistence.xml"); }