All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.module.data.entity.AbstractEntity Maven / Gradle / Ivy

The newest version!
package com.minlia.module.data.entity;

//import org.springframework.data.annotation.CreatedBy;
//import org.springframework.data.annotation.CreatedDate;
//import org.springframework.data.annotation.LastModifiedBy;
//import org.springframework.data.annotation.LastModifiedDate;

import java.util.Date;
import javax.validation.constraints.NotNull;

//@JsonInclude(JsonInclude.Include.NON_NULL)
//@JsonAutoDetect(
//        fieldVisibility = JsonAutoDetect.Visibility.DEFAULT,
//        getterVisibility = JsonAutoDetect.Visibility.NONE,
//        setterVisibility = JsonAutoDetect.Visibility.NONE,
//        isGetterVisibility = JsonAutoDetect.Visibility.NONE,
//        creatorVisibility = JsonAutoDetect.Visibility.NONE)
public abstract class AbstractEntity extends WithIdEntity {

  private static final long serialVersionUID = 1L;

  //    @CreatedBy
  @NotNull
  private String createdBy;

  //    @CreatedDate
  @NotNull
  private Date createdDate = new Date();

  //    @LastModifiedBy
  private String lastModifiedBy;

  //    @LastModifiedDate
  private Date lastModifiedDate = new Date();

  public String getCreatedBy() {
    return createdBy;
  }

  public void setCreatedBy(String createdBy) {
    this.createdBy = createdBy;
  }

  public Date getCreateDate() {
    return createdDate;
  }

  public void setCreateDate(Date createDate) {
    this.createdDate = createDate;
  }

  public String getLastModifiedBy() {
    return lastModifiedBy;
  }

  public void setLastModifiedBy(String lastModifiedBy) {
    this.lastModifiedBy = lastModifiedBy;
  }

  public Date getLastModifiedDate() {
    return lastModifiedDate;
  }

  public void setLastModifiedDate(Date lastModifiedDate) {
    this.lastModifiedDate = lastModifiedDate;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy