Skip to content

Commit

Permalink
[Refactor] User.class RecordKeyword.class delete mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
cake0420 committed Jan 16, 2024
1 parent 03b0e26 commit 48767d5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/main/java/careerfestival/career/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public class User extends BaseEntity {
@OneToMany(mappedBy = "user", cascade = CascadeType.ALL)
private List<Follow> follow = new ArrayList<>();

@OneToMany(mappedBy = "user", cascade = CascadeType.ALL)
private List<RecordKeyword> recordKeyWord = new ArrayList<>();

public void updatePassword(String password) {
this.password = password;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ public class RecordKeyword extends BaseEntity {
@JoinColumn(name = "record_id")
private Record record;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "user_id")
private User user;

}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ spring:
datasource:
url: jdbc:mysql://localhost:3306/careerfestival
username: root
password: "0000"
password: swtndhks12
driver-class-name: com.mysql.cj.jdbc.Driver


Expand Down

0 comments on commit 48767d5

Please sign in to comment.