Hi all,
I've been trying to map following scenario with no luck:
Code:
A--ABC--B
|
C
When any of A, B or C is deleted should ABC be also deleted, but A,B and C should not be deleted (except for the one that was meant to be deleted, of course). I'd prefer to have a map in A (key b, value list of C's) as it'd fit best for my domain model, but I haven't been able to get cascading work for the key.
What I'd like to know is what would be recommended practice for mapping this kind of relationships and if one could get cascading work for the key of the map also. I'm sorry I can't share my actual mapping or code, but if it's needed I could post modified versions of them.