package com.xzx.gc.entity; import com.fasterxml.jackson.annotation.JsonFormat; import com.xzx.gc.common.entity.BaseEntity; import lombok.Data; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import java.util.Date; @Data @Table(name = "xzx_score_goods_style") public class ScoreGoodsStyle{ private String createdBy; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createdTime; private short delFlag; private Integer revision; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private Long goodsId; }