deleted object would be re-saved by cascade (remove deleted object from associations)

后端 未结 18 1152
轮回少年
轮回少年 2020-11-30 00:19

i have the following two entities:

1- PlayList:

@OneToMany(fetch = FetchType.EAGER, mappedBy = \"playlist\", orphanRemoval = true, c         


        
18条回答
  •  温柔的废话
    2020-11-30 00:48

    I just to solve this problem.

    1. I set to null the value of list
    2. I saved the object (It worked)
    3. I set the new data to the object
    4. I resaved the object
    5. It works.!

提交回复
热议问题