ErikFK wrote:
AFAIK in 2.1 you have to do the cascading yourself.
In 3.* it seems possible to have Hibernate do it for you (documentation states that you have to specify lock or all as a cascade style for the association) but I didn't try it...
Erik
In 2.1 we didn't care about cascading locks, and reattach using lock used to work everywhere, so I'd rather think that cascade="lock" was implicit in 2.1. Now with 3.1 I got some lazy initialization exceptions and I had to add default-cascade="lock" everywhere to fix it.