Here's whats going on:
So Visit is an Entity (has database identity) and Diagnosis is a Value type (has no database identity).
I can manage a Visit object with
However, this won't work with Diagnosis. So if I want to delete a DIagnosis object, which is in a Set that is mapped to a Visit object, I do this:
So this works, and removes the Diagnosis from the Collection, however, when Visit is loaded again, the "deleted" Diagnosis is still present in the Collection!
[ August 23, 2007: Message edited by: kwame Iwegbue ]