hello, I'm new to Hibernate, and I'm facing one problem here.... I have one-to-many mapping, and I want to delete from child table. this are the steps: 1. I load the parent data into forms (collection of textfields), and the child data into an arraylist 2. I delete one of the arraylist item 3. I save the parent data and the child data
now, the steps of saving the data is that I put all the arraylist items, into a java.util.List, and then save it.
the child item is deleted (I can't see it when I load the parent), but the problem is, it's still there in the database, but it's parent_id value is null.
does anyone have a better practice about this, or suggestion? thanks
|