content: package io.amplicode.blog.model;
  
  import jakarta.persistence.*;
  
  import java.time.Instant;
  
  @MappedSuperclass
  public class BaseEntity {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id", nullable = false)
      private Long id;
  
      @Column(name = "created_by")
      private String createdBy;
  
      @Column(name = "created_date")
      private Instant createdDate;
  
      @Column(name = "last_modified_by")
      private String lastModifiedBy;
  
      @Column(name = "last_modified_date")
      private Instant lastModifiedDate;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public String getCreatedBy() {
          return createdBy;
      }
  
      public void setCreatedBy(String createdBy) {
          this.createdBy = createdBy;
      }
  
      public Instant getCreatedDate() {
          return createdDate;
      }
  
      public void setCreatedDate(Instant createdDate) {
          this.createdDate = createdDate;
      }
  
      public String getLastModifiedBy() {
          return lastModifiedBy;
      }
  
      public void setLastModifiedBy(String lastModifiedBy) {
          this.lastModifiedBy = lastModifiedBy;
      }
  
      public Instant getLastModifiedDate() {
          return lastModifiedDate;
      }
  
      public void setLastModifiedDate(Instant lastModifiedDate) {
          this.lastModifiedDate = lastModifiedDate;
      }
  }