ObjectDB ObjectDB

find out if an entity is refered by other entities



it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced?

best regards


You can only find it (using a query) for a specific relationship (reference field), so you may have to use many queries to cover all the possible relationships that may reference that child object. As a permanent solution, if you have to support many different relationships, consider adding a collection of referencing parents to every such child.

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


To post on this website please sign in.