I'm trying to integrate ObjectDB as part of a server software I am developing. I'm a little lost at the connection file path for the persistent factory. So if I want to pass in the database file path, with relative path, where exactly is it relative to?
So I did a test and just wrote:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb");
But I got:
Exception: javax.persistence.PersistenceException Message: No Persistence provider for EntityManager named test.odb
Shouldn't the method automatically create a database if it doesn't exist already?
Just started trying out ObjectDB so sorry if I didn't read the documents carefully enough!