package com.bocloud.ims.entity.resource.f5;

import com.bocloud.common.utils.DateSerializer;
import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.Generic;
import com.bocloud.entity.meta.PKStrategy;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 待处理事宜实体类
 * <p>
 * Created by liuyuanyuan on 2019/5/8 16:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("bi_outstanding_issues")
public class BiOutstandingIssues extends Generic {
    @PK(value = PKStrategy.AUTO)
    private Long id; // ID
    @Column("category")
    private String category;
    @Column("apply_user")
    private Long applyUser;
    @Column("apply_date")
    @JsonSerialize(using = DateSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyDate;
    @Column("data")
    private String data;
    @Column("status")
    private String status;
    @IgnoreAll
    private String applyUserName;

}
