package com.cirle.scientific.po;


import com.cirle.scientific.utils.LocalDateTimeJsonDeserializer;
import com.cirle.scientific.utils.LocalDateTimeJsonSerializable;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Entity
@Table(name = "qkj_tqcourse_comments_app")
@Data
@ApiModel
public class QkjTqcourseCommentsApp implements Serializable {


    private static final long serialVersionUID = -5508737077155549057L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private Integer tqcourseId;
    private String content;
    private String commentMemName;
    @JsonSerialize(using = LocalDateTimeJsonSerializable.class)
    @JsonDeserialize(using = LocalDateTimeJsonDeserializer.class)
    private LocalDateTime oprTime;
    private String commentMemHear;
}
