Deleted entity passed to persist exception

前端 未结 4 1123
情歌与酒
情歌与酒 2021-02-08 13:57

I have this kind of entities:

Document | n .. to ..1 | DocumentType | 1 .. to .. n | PropertyType | 1 .. to

4条回答
  •  佛祖请我去吃肉
    2021-02-08 14:39

    I see you are setting the cascade in two places : the @OneToMany and the @Cascade. I think this can be a problem, if one overrides the other ...


    The error you are reporting need some more context to be understandable. "Deleting an already deleted entity" involves clearly two operations .... You need to give details about the state before, the operations and the state afterwards (with "state", I mean the state in the database...).

提交回复
热议问题