[hibernate-dev] Hibernate 4.0.1: regression with @OneToMany(cascade = CascadeType.REMOVE)

Guillaume Smet guillaume.smet at gmail.com
Wed Jan 18 12:39:24 EST 2012


On Wed, Jan 18, 2012 at 6:31 PM, Steve Ebersole <steve at hibernate.org> wrote:
> Well really the trouble is that you are not managing the associations in
> memory.  I understand the behavior is surprising, but had you simply cleaned
> up the Person reference from all its associations (as the JPA spec says you
> have to anyway) you would not have gotten this surprise.

That's what we do in our applications. This is just a unit test to
show all the cascade features to our developers, what they can do,
when they fail and so on.

The fact that a delete operation is silently ignored is disturbing IMHO.

-- 
Guillaume




More information about the hibernate-dev mailing list