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] 약속 호스트 선택 시간 엔티티 구현 #35

Merged
merged 1 commit into from
Feb 13, 2025
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.noostak.appointment.domain;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.time.LocalDateTime;

@Entity
@Getter
@RequiredArgsConstructor
public class AppointmentHostSelectionTimes {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long appointmentHostSelectionTimeId;

@Column
private LocalDateTime appointmentHostSelectionDate;

@Column
private LocalDateTime appointmentHostSelectionStartTime;

@Column
private LocalDateTime appointmentHostSelectionEndTime;
Comment on lines +21 to +25
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

시작 시간과 종료 시간에 대한 간단한 검증은 필요 없을까요?

예를 들어, 시작 시간이 종료 시간보다 이후인지 검증
이런 부분을 고려해 보면 좋을 것 같습니다! 😊

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

따로 Time Validator 책임을 맡는 객체를 구현하여 검증 진행하겠습니다🫡


// TODO:
// @ManyToOne(fetch = FetchType.LAZY)
// @JoinColumn(name = "appointment_id")
// private Appointment appointment;
}