Skip to content

Commit

Permalink
refactor: text entity title 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
mangowhoiscloud committed Nov 6, 2024
1 parent 9f07465 commit 35a2c89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public void initializeData(MemberRepository memberRepo, PrivatePostRepository pr

for(int i=1; i<=10; i++){
TextRecord textRecord = TextRecord.builder()
.title("Text Record Title " + i)
.script("This is a text record " + i)
.build();
textRecords.add(textRecordRepo.save(textRecord));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,11 @@ public class TextRecord extends BaseEntity {
@Column(nullable = false, length = 10000)
private String script;

@Column(nullable = false)
private String title;

@OneToOne(mappedBy = "textRecord")
private PrivatePost privatePost;

@Builder
private TextRecord(String script, String title) {
this.title = title;
private TextRecord(String script) {
this.script = script;
}
}

0 comments on commit 35a2c89

Please sign in to comment.