-
Notifications
You must be signed in to change notification settings - Fork 0
feat(APIAdmin,Order): order칼럼 추가 #42
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
The head ref may contain hidden characters: "feat/#41-order\uCE7C\uB7FC\uCD94\uAC00"
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,5 +46,7 @@ public class UserOrder extends BaseTimeEntity { | |||||||||||
| private List<OrderItem> orderItems = new ArrayList<>(); | ||||||||||||
|
|
||||||||||||
| private String sessionId; | ||||||||||||
| @Column(length = 10) // 예약자 이름 길이 제한 | ||||||||||||
| private String depositorName; | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion 데이터베이스 제약사항 추가를 고려해보세요. depositorName 필드에 적절한 데이터베이스 제약사항을 추가하는 것을 권장합니다. 다른 String 필드(signature)와의 일관성을 위해 길이 제한을 설정하고, 개인정보 보호 관점에서도 적절한 제약을 두는 것이 좋겠습니다. - private String depositorName;
+ @Column(length = 100) // 예약자 이름 길이 제한
+ private String depositorName;또한 필드 순서를 고려하여 sessionId 다음에 배치하는 것도 고려해보세요: private String sessionId;
+ @Column(length = 100)
private String depositorName;
-
- private String depositorName;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| } | ||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.nowait.order.exception; | ||
|
|
||
| import com.nowait.common.exception.ErrorMessage; | ||
|
|
||
| public class DepositorNameTooLongException extends RuntimeException { | ||
| public DepositorNameTooLongException() { | ||
| super(ErrorMessage.DEPOSITOR_NAME_TOO_LONG.getMessage()); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Bean Validation 어노테이션 추가를 고려해보세요.
depositorName 필드에 유효성 검증을 위한 Bean Validation 어노테이션을 추가하는 것을 권장합니다. 이를 통해 컨트롤러 레벨에서 자동으로 검증할 수 있습니다.
📝 Committable suggestion
🤖 Prompt for AI Agents