views:

19

answers:

0

Is it possible to get a list of all related objects from a given entity, which I would like to delete?

In the mapping I defined the cascading, that works well. But I would like to present the user which entities are currently connected to that entity so they might want to keep the entity.

For example I have an entity event which has participants. The event could be deleted whether it has 1 or more participants or none. In some situations it's easy to just disable the delete-button, but not for all situations.

If there does nothing exist like what I need I would probably go trough the object and each sub-object to see what's connected...?

Regards