public EntityManagerFactoryImpl(PersistenceUnitInfo puInfo, Map<String, Object> properties) { // Load Core logger.info("Loading Core"); new CoreLoader().load(kunderaMetadata); this.configurePersistenceUnit(puInfo, properties); this.util = new KunderaPersistenceUnitUtil(cache); this.configure(puInfo.getPersistenceUnitName(), properties); }
/** * Use this if you want to construct this directly. * * @param persistenceUnit * used to prefix the Cassandra domains * @param properties * the properties */ public EntityManagerFactoryImpl(String persistenceUnit, Map<String, Object> properties) { // Load Core logger.info("Loading Core"); new CoreLoader().load(kunderaMetadata); this.configurePersistenceUnit(persistenceUnit, properties); this.util = new KunderaPersistenceUnitUtil(cache); this.configure(persistenceUnit, properties); }