package com.yeejoin.amos.latentdanger.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * <pre>
 * 基本实体类
 * </pre>
 * @author DELL
 */
@Data
public class BasicEntity implements Serializable {

    private static final long serialVersionUID = -5464322936854328207L;

    /**
     * id
     */
    @TableId(type = IdType.ID_WORKER)
    private Long id;

//    @CreatedDate
    @Column(name = "create_date")
    private Date createDate;

//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    @Column(name = "ID", nullable = false, unique = true)
//    public long getId() {
//        return id;
//    }
//
//    public void setId(long id) {
//        this.id = id;
//    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


}
