One to many cascade All is not setting parent id while child entry insertion

℡╲_俬逩灬. 提交于 2019-12-07 02:02:29

Issue was i had product_id column (join column in child) as not-null. After making it nullable it worked.

I was unaware of queries executed by hibernate for cascade all.

First hibernate adds child entries with join column value as null, and then it updates the entry.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!