Skip to content

Commit 4be4e8c

Browse files
authored
Merge pull request #40 from CarToi/dev
[refactor] 데이터 소스 enumerated
2 parents 2ccee0f + 94fa63f commit 4be4e8c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/main/java/org/jun/saemangeum/consume/domain/swap/ContentView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class ContentView implements IContent {
3535
private String introduction;
3636

3737
@Column
38+
@Enumerated(EnumType.STRING)
3839
private CollectSource collectSource;
3940

4041
@OneToOne(mappedBy = "contentView")

src/main/java/org/jun/saemangeum/global/domain/Content.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class Content implements IContent {
4040
private String introduction;
4141

4242
@Column
43+
@Enumerated(EnumType.STRING)
4344
private CollectSource collectSource;
4445

4546
@OneToOne(mappedBy = "content", cascade = CascadeType.REMOVE, orphanRemoval = true)

src/main/java/org/jun/saemangeum/global/domain/Count.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class Count {
1818
private Long id;
1919

2020
@Column(nullable = false, name = "collect_source")
21+
@Enumerated(EnumType.STRING)
2122
private CollectSource collectSource;
2223

2324
@Column

0 commit comments

Comments
 (0)