Skip to content

Instantly share code, notes, and snippets.

@Alex-Ikanow
Last active December 16, 2015 13:59
Show Gist options
  • Save Alex-Ikanow/5445543 to your computer and use it in GitHub Desktop.
Save Alex-Ikanow/5445543 to your computer and use it in GitHub Desktop.
Map kunderaMongoConfig = new HashMap();
kunderaMongoConfig.put("kundera.nodes", "testnode.ikanow.com");
kunderaMongoConfig.put("kundera.port", "27017");
EntityManagerFactory factory = Persistence.createEntityManagerFactory("mongoPU", kunderaMongoConfig);
// (Also tried creating a KunderaPersistence, and also instantiating EntityManagerFactoryImpl directly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment