Home » Support » Forum » find out if an entity is refered by other entities

find out if an entity is refered by other entities

#1

Hello,

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

#2

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)

Post Reply

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