I have two really simple objects and one object should contain the other one in an \"one-to-many\" relation in a set. The objects get inserted correctly in the database, but
It's quite simple: you never initialize the testObj field in Children (which should be named Child, BTW). Children.testObj is the owner of the association, and is the field that is mapped to the join column, so if it's null, the join column will be null.