Hibernate Inverse attribute

前端 未结 4 1909
孤街浪徒
孤街浪徒 2021-02-04 17:38

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

4条回答
  •  别跟我提以往
    2021-02-04 17:56

    If we are using inverse=true, means the child is responsible to update relation ship. Compulsory child object should contain the parent object else foreign key is not updated.

提交回复
热议问题