com.carry.dto;
importjava.io.Serializable;importjava.time.LocalDate;importjava.time.LocalDateTime;
importjavax.persistence.GeneratedValue;importjavax.persistence.GenerationType;importjavax.persistence.Id;
importcom.fasterxml.jackson.annotation.JsonFormat;
public class User implementsSerializable{
private static final long serialVersionUID = -108907189034815108L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate createDate;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime createTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public LocalDate getCreateDate() {
return createDate;
}
public void setCreateDate(LocalDate createDate) {
this.createDate = createDate;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
}