package com.whn.hellospring.model; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.*; import org.hibernate.annotations.Sort; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; @Entity @Table(name = "T_OIL") @Data @ToString(callSuper = true) @NoArgsConstructor @AllArgsConstructor @Builder public class OilDO extends BaseEntity implements Serializable { private Double unitPrice; private Double num; private Double price; private Double mileage; private Double intervalMileage; private Double intervalOilWear; private String address; private String name; private int status; private Long customer_id; @JsonFormat(timezone = "GMT+8", pattern = "yyyy年MM月dd日") private Date time; }