@Test public void testCreateContainerEntityManagerFactory() { final Map<String, String> props = new HashMap<>(); props.put("javax.persistence.jdbc.driver", "org.h2.jdbcx.JdbcDataSource"); props.put("javax.persistence.jdbc.url", "jdbc:h2:mem:"); final MinijaxPersistenceProvider provider = new MinijaxPersistenceProvider(); provider.createContainerEntityManagerFactory(new MinijaxPersistenceUnitInfo("testdb", ""), props); }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map) { return new MinijaxEntityManagerFactory((MinijaxPersistenceUnitInfo) info, map); }
MinijaxPersistenceProvider implements javax.persistence.spi.PersistenceProvider { @Override @SuppressWarnings({ "rawtypes", "unchecked" }) public MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map) { return new MinijaxEntityManagerFactory((MinijaxPersistenceUnitInfo) info, map); } }
MinijaxPersistenceProvider implements javax.persistence.spi.PersistenceProvider { @Override @SuppressWarnings({ "rawtypes", "unchecked" }) public MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map) { return new MinijaxEntityManagerFactory((MinijaxPersistenceUnitInfo) info, map); } MinijaxPersistenceProvider(); }
MinijaxPersistenceProvider implements javax.persistence.spi.PersistenceProvider { @Override @SuppressWarnings({ "rawtypes", "unchecked" }) public MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map) { return new MinijaxEntityManagerFactory((MinijaxPersistenceUnitInfo) info, map); } MinijaxPersistenceProvider(); @Override @SuppressWarnings({ "rawtypes", "unchecked" }) MinijaxEntityManagerFactory createEntityManagerFactory(final String emName, final Map map); @Override @SuppressWarnings({ "rawtypes", "unchecked" }) MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map); @Override @SuppressWarnings("rawtypes") void generateSchema(final PersistenceUnitInfo info, final Map map); @Override @SuppressWarnings("rawtypes") boolean generateSchema(final String persistenceUnitName, final Map map); @Override ProviderUtil getProviderUtil(); }
MinijaxPersistenceProvider implements javax.persistence.spi.PersistenceProvider { @Override @SuppressWarnings({ "rawtypes", "unchecked" }) public MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map) { return new MinijaxEntityManagerFactory((MinijaxPersistenceUnitInfo) info, map); } MinijaxPersistenceProvider(); @Override @SuppressWarnings({ "rawtypes", "unchecked" }) MinijaxEntityManagerFactory createEntityManagerFactory(final String emName, final Map map); @Override @SuppressWarnings({ "rawtypes", "unchecked" }) MinijaxEntityManagerFactory createContainerEntityManagerFactory(final PersistenceUnitInfo info, final Map map); @Override @SuppressWarnings("rawtypes") void generateSchema(final PersistenceUnitInfo info, final Map map); @Override @SuppressWarnings("rawtypes") boolean generateSchema(final String persistenceUnitName, final Map map); @Override ProviderUtil getProviderUtil();  }