ghiro wrote:
hi anthony.
maybe my reply is out of place, but isn' t the "all" cascade here the right choice?
i mean, isn' t the "all-delete-orphans" appropriate for the following situation (assuming the mapping presented here) :
if a customer is delete, then remove all the addresses populating the set , because they are weak entities and they have no father left.
while the "delete " cascade behavior is intended for:
if an address populating the set of a customer is deleted, then remove it from the db when the customer is persisted.
Am I getting it right?
It solved my problem, but I too am puzzled.