Fast Object Database for Java - with JPA/JDO support

odb files and config file



I used the tutorial ( to use ObjectDB in my maven project. After that there was a db folder in src/main/java/webapp/WEB-INF/. But there were no obd files in it. I'm getting my EntityManager by doing this:

EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/account.odb");

I looked for the odb files and found it somewhere in my workspace metadata (eclipse plugins). What can I do to save the odb files in src/main/java/webapp/WEB-INF/db/?

I tried this:

EntityManagerFactory emf = Persistence.createEntityManagerFactory("/db/accountodb");

And I got the following error message:

Failed to create a new file '/db/account.odb'


And I read ( that you can define the odb home in a config file. But where to I find the config file in my project?


You can specify an absolute path.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply