Skip to content

[backend]数据库 多对多中间表删除问题 #115

@Nick-bit233

Description

@Nick-bit233

多对多删除解决方案:
实体A使用多对多关联(@manytomany)关联B,JPA自动生成第三张中间表C,
然后在需要删除实体并且级联删除中间表时,提前删除中间表C的关联数据。
目前需要按此方案修改的多对多表:
(A) user-like-articles (B)
(A) user-favorite-articles (B)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions