Detached entity passed to persist when save the child data

前端 未结 3 2155
Happy的楠姐
Happy的楠姐 2020-12-05 14:26

I\'m getting this error when submitting the form:

org.hibernate.PersistentObjectException: detached entity passed to persist: com.project.pmet.model.A

3条回答
  •  醉话见心
    2020-12-05 14:52

    Since your id is auto generated value, don't send it from client side. I had a same issue. Make sure that you does't provide a value for auto generated attribute.

提交回复
热议问题