ObjectDB ObjectDB

Repair broken references in entities



it is possible to recover an entity that has been removed automatically by CascadeType.Remove.

After cascade remove the removed entity will be persisted with the identical primary key.

Are all broken references in other entities on this removed/persisted entity repaired again?

best regards


You cannot undo the removal and get the removed content back (unless you restore it manually, e.g. from backup) but you should be able to persist a new entity of the same type with the same primary key, and then references to the old entity should point to the new one (eliminating broken references).

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


To post on this website please sign in.