Skip to content

Commit

Permalink
feat:#1 BaseTimeEntity
Browse files Browse the repository at this point in the history
공통 시간 entity 생성
  • Loading branch information
dali186 committed Jul 25, 2023
1 parent 6712379 commit 91a5808
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Binary file modified .gradle/8.1.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.1.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.example.kdtbe5_miniproject._core.util;

import lombok.Getter;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;

@Getter
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public class BaseTimeEntity {

@CreatedDate
private LocalDateTime createdAt;

@LastModifiedDate
private LocalDateTime updateAt;
}

0 comments on commit 91a5808

Please sign in to comment.