Re: [appfuse-user] Problem deleting child in 1..M relationship

2008-01-09 Thread Gareth Davis
unfortunately hibernate doesn't quite work like that. The Cascade.ALL reference on the OneToMany only means that if you call session.delete(parent) it'll cascade down to this collection as well. In order to delete a single child element you need to actually call session.delete(child). Faili

[appfuse-user] Problem deleting child in 1..M relationship

2008-01-08 Thread paulie
Hello, I am using Struts 2 basic archtype version 2.0.1. I have been unsuccessful in using DAO for deleting a child in a simple parent/child relationship. Here are the steps that I took. 1. Create Master POJO: @Entity public class Parent extends