In the Parent-Child document:
http://www.hibernate.org/155.html
a Child is added to the Parent's set and both Parent and Child are saved explicitly.
In various postings and other examples with Parent-Child relationship it is only the Parent that is being saved explicitly.
I have been playing with a Parent-Child (sort of, I have a composite-id) relationship and Hibernate generates INSERT statement for the Parent and only an UPDATE statement for the Child (I was expecting an INSERT statement for the Child as well).
So, before posting mappings and code, I just want to confirm that (provided that all settins,mappings are correct) a Child, that has been added to a parent's collection will be inserted in the corresponding table upon session.save(Parent), without having to explicitly save the Child as well.
Thanks