if bone is modified and dog is merged
Code:
dog.getBone().setSize(4);
session.merge(dog);
then the bone representation in DB will be
updated thanks to the merge cascading.
Don't cascade MERGE to the image specification
Wow, that clears up a lot. Thanks!
Code:
dog.setBone(null);
session.merge(dog);
Will not remove bone since it's a
many to one
Hmm, in the case of a many-to-one relationship, will it *ever* remove bone? I mean, is Hibernate smart enough to remove the bone if no other dog refers to it or is it up for me to do manually?