Created
December 27, 2019 09:42
-
-
Save ereshzealous/22e94035ba956a092c0591ba8f08459f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package com.eresh.spring.persistence.entity; | |
| import lombok.Getter; | |
| import lombok.NoArgsConstructor; | |
| import lombok.Setter; | |
| import org.springframework.data.annotation.CreatedBy; | |
| import org.springframework.data.annotation.CreatedDate; | |
| import org.springframework.data.annotation.Id; | |
| import org.springframework.data.annotation.LastModifiedBy; | |
| import org.springframework.data.annotation.LastModifiedDate; | |
| import org.springframework.data.annotation.Version; | |
| import java.time.ZonedDateTime; | |
| import java.util.Date; | |
| /** | |
| * Created By Gorantla, Eresh on 12/Dec/2019 | |
| **/ | |
| @Getter | |
| @Setter | |
| @NoArgsConstructor | |
| public abstract class BaseEntity { | |
| @Id | |
| private String id; | |
| @CreatedBy | |
| private String createdBy; | |
| @CreatedDate | |
| private Date createdDate; | |
| @LastModifiedBy | |
| private String updatedBy; | |
| @LastModifiedDate | |
| private Date updatedDate; | |
| @Version | |
| private Long version; | |
| private Boolean delete = Boolean.FALSE; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment