Re: @ElementDependent and cascade-delete

2007-04-19 Thread Jacek Laskowski
On 4/19/07, roger.keays [EMAIL PROTECTED] wrote: I have a list which is marked @ElementDependent and also CascadeType.ALL. Adding and removing items from the list works fine, and those elements are deleted from the database. When I try to delete the owning entity though, I get the exception

@ElementDependent and cascade-delete

2007-04-18 Thread roger.keays
Hi there, I have a list which is marked @ElementDependent and also CascadeType.ALL. Adding and removing items from the list works fine, and those elements are deleted from the database. When I try to delete the owning entity though, I get the exception below. I can delete the entity okay if I