Skip to content

Commit d007231

Browse files
committed
fix: remove unnecessary jointable and joincloumn
1 parent ab45e13 commit d007231

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/main/java/cat/udl/eps/softarch/demo/domain/Content.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ public class Content {
1717
private Long contentId;
1818

1919
@ManyToMany
20-
@JoinTable(
21-
name = "content_tags",
22-
joinColumns = @JoinColumn(name = "content_id"),
23-
inverseJoinColumns = @JoinColumn(name = "tag_id")
24-
)
2520
private List<Tag> tags;
2621

2722
@ManyToOne
28-
@JoinColumn(name = "user_id")
2923
private User user;
3024

3125
@OneToMany(mappedBy = "content", cascade = CascadeType.REMOVE, orphanRemoval = true)
@@ -49,4 +43,4 @@ public class Content {
4943
@Enumerated(EnumType.STRING)
5044
@Column(nullable = false)
5145
private Visibility visibility;
52-
}
46+
}

0 commit comments

Comments
 (0)