Removing entity class

#1

Hello,

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

Milan

#2

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
#3

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

#4

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

Reply