Removing entity class



I am using evaluation version of ObjectDB for long term private project. Recently I hit the 10 entities limit and got exception:

com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit

Among the 10 entities in the project there are 2 entities I added long time ago and they were never really used. I deleted them from Java source code, but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count into 10 entities limit.

My question is: Is it possible to remove entity/table completely from ObjectDB database, in order to make space for new entity?

Thank you in advance for any answer.

Best Regards



Unfortunately removing a class is currently unsupported.

You will have to create a new empty database and copy the content of the old database to the new one.

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

Ok, is there any simple way how to do it, for example with ObjectDB Explorer?


You can retrieve all your objects, detach them, and then persist them to a new database.

If the database is larger then memory it may become more difficult.

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

Post Reply

To post a reply and/or subscribe to update notifications - please login