I am creating a one-to-many relationship. so, i have a parent and a child. The cascade attribute is set to all.
I was wondering, if we consider the following piece of co
Inverse is only to tell NH that the foreign key is mapped twice, usually as a one-to-many and a many-to-one, and that it therefore only needs to be stored from one side.
Q1) the child is stored by cascade, but the parent-FK is null. (Except you set the parent relation in the child within p.addChild(c)
.)
Q2) same as Q1.
Q3) exactly.