Skip to content

Commit

Permalink
Revert "chore: 나의 서재 기능 삭제 2"
Browse files Browse the repository at this point in the history
This reverts commit 7382ad8.
  • Loading branch information
dong2ast committed Jul 12, 2023
1 parent 9f3da5b commit 2447d9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/org/sophy/sophy/InitDb.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void dbInit() {
.isOperator(false)
.authority(Authority.ROLE_USER)
.build();
citizen.setBookCount(8);
citizen.setBookTalkCount(5);
em.persist(citizen);

Expand All @@ -63,6 +64,7 @@ public void dbInit() {
.build();
author.setAuthor(memauthor);
author.setBookTalkCount(3);
author.setBookCount(3);
em.persist(author);

Place place = Place.builder()
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/org/sophy/sophy/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Member extends AuditingTimeEntity{
@Enumerated(EnumType.STRING)
private Authority authority;

// private Integer bookCount; 나의 서재 기능 삭제
private Integer bookCount;
private Integer bookTalkCount;

@OneToOne
Expand Down Expand Up @@ -77,6 +77,9 @@ public void setAuthor(AuthorProperty authorProperty) {
this.authorProperty = authorProperty;
}

public void setBookCount(int count) {
this.bookCount = count;
}

public void setBookTalkCount(int count) {
this.bookTalkCount = count;
Expand Down

0 comments on commit 2447d9d

Please sign in to comment.