Skip to content

Commit

Permalink
fix: 联级操作删除
Browse files Browse the repository at this point in the history
  • Loading branch information
lichong-a committed Sep 18, 2024
1 parent ec0cd3b commit 6220407
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ public class Course extends BaseEntity {
@Schema(description = "课程价格")
private BigDecimal price;

@ManyToOne(cascade = {CascadeType.PERSIST}, fetch = FetchType.EAGER)
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "course_description_storage_id", referencedColumnName = "id")
@Comment("课程简介文件")
@Schema(description = "课程简介文件")
private Storage courseDescriptionStorage;

@ManyToOne(cascade = {CascadeType.PERSIST}, fetch = FetchType.EAGER)
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "course_media_storage_id", referencedColumnName = "id")
@Comment("课程音视频文件")
@Schema(description = "课程音视频文件")
private Storage courseMediaStorage;

@ManyToOne(cascade = {CascadeType.PERSIST}, fetch = FetchType.EAGER)
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "course_cover_storage_id", referencedColumnName = "id")
@Comment("课程封面文件")
@Schema(description = "课程封面文件")
Expand Down

0 comments on commit 6220407

Please sign in to comment.