Repair broken references in entities

#1

Hello,

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

#2

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)

Post Reply

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