Basically, what the author is trying to say is that in the case of parenting with children, we must first transfer the child and then link the child to the parent and then save the parent or allow the parent to remain in it. This can be done using insertable=false, updateable=false .
What insertable=false, updateable=false means is that the responsibility for creating / updating the corresponding object is not part of the child object. You have a child and a parent. You want to add insertable = false, updatable = false to the @OneToMany relationship with the child in the parent, simply because the responsibility for creating or updating the parent is not responsible for the child. This is the opposite.
Suraj menon
source share