In this case, I can see (from hibernate logs) that the parent is updated, but the changed child is not updated.
Is there an option in Hibernate to force the changed children to get updated when the parent is updated?
Doesn't that kind of defeat the purpose of mappings? I don't think I should have to loop the entire thing because I could just save each individually.
could any body give me a solution, please suggest the idea to proceed :) this is my Useradmin Class : @Request Mapping("/user/tanya-jawab.html") public Model And View list Tanya Jawab(Model Map model)throws Exception @Request Mapping(value="/user/add-tanya-jawab.html", method=Request Method.
Therefore you should update the existing List as was pointed out, so orphans get removed on update. If you want to avoid duplicates try a Set rather than a list, and implement hash Code() and equals() on the Phone class, for example, it might make sense to check check equality on phone.number.
here no need to join column because with reference of model object you will get the list of test Details.
Invoice Bulk#206] at org.hibernate.persister.entity. Abstract Entity Persister.check(Abstract Entity Persister.java:1761) at org.hibernate.persister.entity.
when i try to update the the phone number (a list), the previous entry is not deleted but the idx(list index) and the foreign key are null and the new entries are marked with the correct idx and foreign key!!