Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 행사, 폼 관련 최대 글자 수 설정 #280

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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