I am having problems getting the CascadeType.ALL to work. If I have the following:
@OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER)
@JoinColumn(name="pcsuser_id")
public Collection getContacts() {
return contacts;
}
and I remove the main entity should the related children not be deleted as well since I specified the cascade to ALL?
Is anyone else experiencing this problem??