1、实体(偷懒,字段注解没加全)
@Entity
@Table(name = "PRODUCT")
public class ProductDomain extends BaseDomain implements Serializable {
private static final long serialVersionUID = 445278702962770847L;
/**
* id
*/
@Id
@GeneratedValue(generator = "idGenerator")
@GenericGenerator(name = "idGenerator", strategy = "uuid")
@Column(name = "ID", nullable = false, length = 32)
private String id;
/**
* 产品名称
*/
private String productName;
/**
* 产品内容
*/
private String productContent;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 修改时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
/**