Fast Object Database for Java - with JPA/JDO support

How to retrieve the ObjectDB version number?



We need  the ObjectDB version for debug purpose/logging.

Our project supports also EclipseLink -
With the Connection object the Database name & version can be retrieved.

For ObjectDB, which is the best (JPA) method to get the version number?







It is not JPA portable, but you should be able to get the version with the following code:

public static void main(String[] args)
    com.objectdb.jdo.PMF pmf = new com.objectdb.jdo.PMF();
    String version = pmf.getProperties().getProperty("VersionNumber");
ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply