Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Last active September 4, 2015 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosbor11/a45a23d703b3de36e1a3 to your computer and use it in GitHub Desktop.
Save cosbor11/a45a23d703b3de36e1a3 to your computer and use it in GitHub Desktop.
onyx embedded persistence manager factory
PersistenceManagerFactory factory = new EmbeddedPersistenceManagerFactory(); //1
factory.setCredentials("username", "password"); //2
String pathToOnyxDB = System.getProperty("user.home")
+ File.separatorChar + ".onyxdb"
+ File.separatorChar + "sandbox"
+ File.separatorChar +"embedded-db.oxd";
factory.setDatabaseLocation(pathToOnyxDB); //3
factory.initialize(); //4
PersistenceManager manager = factory.getPersistenceManager(); //5
@cosbor11
Copy link
Author

cosbor11 commented Sep 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment