From ca559d3a79908db8ec59933ae5951a224d69273f Mon Sep 17 00:00:00 2001 From: kang Date: Mon, 9 Sep 2024 15:38:01 +0900 Subject: [PATCH] feat: add annotation --- .../java/co/orange/ddanzi/common/domain/BaseTimeEntity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/co/orange/ddanzi/common/domain/BaseTimeEntity.java b/src/main/java/co/orange/ddanzi/common/domain/BaseTimeEntity.java index 15eb1371..0c40adb5 100644 --- a/src/main/java/co/orange/ddanzi/common/domain/BaseTimeEntity.java +++ b/src/main/java/co/orange/ddanzi/common/domain/BaseTimeEntity.java @@ -1,10 +1,15 @@ package co.orange.ddanzi.common.domain; +import jakarta.persistence.MappedSuperclass; +import lombok.Getter; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import java.time.LocalDateTime; + +@Getter +@MappedSuperclass public class BaseTimeEntity { @CreatedDate LocalDateTime createdAt;