Fast Object Database for Java - with JPA/JDO support

Odb file version



Do we have any mechanism to knwo whether the odb file belongs to 1.x object db or 2.x object db. Before migrating all the odb files from objectdb 1.x to 2.x, i would like to add a check if it is already migrated.

Any API which is exposed to check the odb files version ?


There is no such API, but you can use a try-catch block. i.e. you can write code that tries opening the database file with ObjectDB 2.x and if it fails runs the conversion.

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

Post Reply