diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/file/model/EmployeeCertificate.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/file/model/EmployeeCertificate.kt index bf58fa9e..da5e6a8e 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/file/model/EmployeeCertificate.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/file/model/EmployeeCertificate.kt @@ -1,5 +1,7 @@ package team.comit.simtong.domain.file.model +import team.comit.simtong.global.annotation.Aggregate + /** * * EmployeeCertificate Aggregate Root를 담당하는 EmployeeCertificate @@ -9,6 +11,7 @@ package team.comit.simtong.domain.file.model * @date 2022/12/06 * @version 1.0.0 **/ +@Aggregate data class EmployeeCertificate( val employeeNumber: Int, diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/holiday/model/HolidayPeriod.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/holiday/model/HolidayPeriod.kt index 3d44c849..053dad17 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/holiday/model/HolidayPeriod.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/holiday/model/HolidayPeriod.kt @@ -1,5 +1,6 @@ package team.comit.simtong.domain.holiday.model +import team.comit.simtong.global.annotation.Aggregate import java.time.LocalDate import java.util.UUID @@ -11,6 +12,7 @@ import java.util.UUID * @date 2022/12/20 * @version 1.0.0 **/ +@Aggregate data class HolidayPeriod( val year: Int, diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/Notification.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/Notification.kt index 1ba974e6..d7b8f4fe 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/Notification.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/Notification.kt @@ -1,5 +1,6 @@ package team.comit.simtong.domain.notification.model +import team.comit.simtong.global.annotation.Aggregate import java.time.LocalDateTime import java.util.UUID @@ -11,6 +12,7 @@ import java.util.UUID * @date 2022/12/29 * @version 1.1.0 **/ +@Aggregate data class Notification( val id: UUID = UUID(0, 0), diff --git a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/NotificationReceiver.kt b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/NotificationReceiver.kt index e926a128..31061432 100644 --- a/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/NotificationReceiver.kt +++ b/simtong-domain/src/main/kotlin/team/comit/simtong/domain/notification/model/NotificationReceiver.kt @@ -1,5 +1,6 @@ package team.comit.simtong.domain.notification.model +import team.comit.simtong.global.annotation.Aggregate import java.time.LocalDateTime import java.util.UUID @@ -11,8 +12,11 @@ import java.util.UUID * @date 2022/12/29 * @version 1.1.0 **/ +@Aggregate data class NotificationReceiver( val userId: UUID, + val notificationId: UUID, + val checkedAt: LocalDateTime? = null )