Skip to content

Commit

Permalink
set: 서버 실행시 목업 데이터 삽입 구현 및 데이터 타입 TEXT 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwhsk0 committed Oct 29, 2024
1 parent 72ba0ba commit dac9ec9
Show file tree
Hide file tree
Showing 6 changed files with 1,340 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
1,331 changes: 1,331 additions & 0 deletions src/main/java/com/Alchive/backend/config/DataInitializer.java

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main/java/com/Alchive/backend/domain/board/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public class Board {
@Column(name = "status", length = 10, nullable = false)
private BoardStatus status;

@Column(name = "description")
@Lob
@Column(name = "description", columnDefinition = "TEXT")
private String description;

public static Board of(Problem problem, User user, BoardCreateRequest boardCreateRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public class Problem {
@Column(name = "title", nullable = false, length = 60)
private String title;

@Column(name = "content", nullable = false)
@Lob
@Column(name = "content", nullable = false, columnDefinition = "TEXT")
private String content;

@Column(name = "url", nullable = false, length = 300)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ public class Solution {
@JoinColumn(name = "boardId", nullable = false)
private Board board;

@Column(name = "content")
@Lob
@Column(name = "content", columnDefinition = "TEXT")
private String content;

@Enumerated(EnumType.STRING)
@Column(name = "language", length = 20, nullable = false)
private SolutionLanguage language;

@Column(name = "description")
@Lob
@Column(name = "description", columnDefinition = "TEXT")
private String description;

@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
@Getter
public class PaginationRequest {
private int offset = 0;
private int limit = 10;
private int limit = 20;
}

0 comments on commit dac9ec9

Please sign in to comment.