Skip to content

Commit

Permalink
📦️ [CHORE] sticker 카테고리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dong2ast committed Jan 18, 2024
1 parent 5a26275 commit 1aba378
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/main/java/org/sopt/lequuServer/InitDb.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.sopt.lequuServer;

import static org.sopt.lequuServer.domain.sticker.model.StickerCategory.CAT;

import jakarta.annotation.PostConstruct;
import jakarta.persistence.EntityManager;
import java.util.Arrays;
Expand All @@ -9,6 +11,7 @@
import org.sopt.lequuServer.domain.member.model.Member;
import org.sopt.lequuServer.domain.member.model.SocialPlatform;
import org.sopt.lequuServer.domain.note.model.Note;
import org.sopt.lequuServer.domain.sticker.model.Sticker;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

Expand Down Expand Up @@ -141,11 +144,11 @@ public void dbInit() {
em.persist(note2);
}

// Sticker sticker1 = Sticker.builder()
// .bookId(0L)
// .category(BIRTHDAY)
// .stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/birth_1.svg")
// .build();
Sticker sticker1 = Sticker.builder()
.bookId(0L)
.category(CAT)
.stickerImage("https://dzfv99wxq6tx0.cloudfront.net/stickers/birth_1.svg")
.build();
// em.persist(sticker1);
// for (int i = 0; i < 2; i++) {
// Sticker sticker = Sticker.builder()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spring:
jpa:
show-sql: true
hibernate:
ddl-auto: update
ddl-auto: create
properties:
hibernate:
format_sql: true
Expand Down

0 comments on commit 1aba378

Please sign in to comment.