I have two entities, lets call them A and B, which have a ManyToOne mapping to another entity, say C
So I typically have something like this:
a1->c
a2->c
b1->c
Lots of A's and B's pointing to the same C.
How do I get Hibernate to remove c when I remove the last a and b?