-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d03863
commit 3c87475
Showing
3 changed files
with
29 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
package seoul.gonggong.global; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.EntityListeners; | ||
import jakarta.persistence.MappedSuperclass; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.annotation.CreatedDate; | ||
import org.springframework.data.annotation.LastModifiedDate; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@MappedSuperclass | ||
@Getter | ||
@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED) | ||
@EntityListeners(AuditingEntityListener.class) | ||
public abstract class BaseEntity { | ||
@CreatedDate | ||
@Column(updatable = false) | ||
private LocalDateTime createdAt; | ||
|
||
@LastModifiedDate | ||
private LocalDateTime updatedAt; | ||
} | ||
//package seoul.gonggong.global; | ||
// | ||
//import jakarta.persistence.Column; | ||
//import jakarta.persistence.EntityListeners; | ||
//import jakarta.persistence.MappedSuperclass; | ||
//import lombok.Getter; | ||
//import lombok.NoArgsConstructor; | ||
//import org.springframework.data.annotation.CreatedDate; | ||
//import org.springframework.data.annotation.LastModifiedDate; | ||
//import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
// | ||
//import java.time.LocalDateTime; | ||
// | ||
//@MappedSuperclass | ||
//@Getter | ||
//@NoArgsConstructor(access = lombok.AccessLevel.PROTECTED) | ||
//@EntityListeners(AuditingEntityListener.class) | ||
//public abstract class BaseEntity { | ||
// @CreatedDate | ||
// @Column(updatable = false) | ||
// private LocalDateTime createdAt; | ||
// | ||
// @LastModifiedDate | ||
// private LocalDateTime updatedAt; | ||
//} |