Skip to content

Commit

Permalink
feat: 행사, 폼 관련 최대 글자 수 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon-z committed Dec 1, 2023
1 parent 8388d1d commit cdbf1d8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/spaceclub/event/domain/EventInfo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.spaceclub.event.domain;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Lob;
import lombok.AccessLevel;
Expand All @@ -22,7 +23,7 @@ public class EventInfo {

private static final int TITLE_MAX_LENGTH = 30;

private static final int CONTENT_MAX_LENGTH = 200;
private static final int CONTENT_MAX_LENGTH = 1000;

private static final int LOCATION_MAX_LENGTH = 30;

Expand All @@ -33,6 +34,7 @@ public class EventInfo {
@Getter
private String title;

@Column(length = 1000)
@Getter
private String content;

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/spaceclub/form/domain/Form.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class Form extends BaseTimeEntity {
private Long id;

@Getter
@Column(length = 1000)
private String description;

@Getter
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/spaceclub/form/domain/FormAnswer.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class FormAnswer extends BaseTimeEntity {
private Long userId;

@Getter
@Column(length = 1000)
private String content;

@Builder
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/spaceclub/form/domain/FormOption.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class FormOption {
private Long id;

@Getter
@Column(length = 1000)
private String title;

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class EventInfoTest {

private static final String TITLE_MAX_LENGTH = "값".repeat(31);

private static final String CONTENT_MAX_LENGTH = "값".repeat(201);
private static final String CONTENT_MAX_LENGTH = "값".repeat(1001);

private static final String LOCATION_MAX_LENGTH = "값".repeat(31);

Expand Down

0 comments on commit cdbf1d8

Please sign in to comment.