package com.jiayue.ipfcst.common.data.entity;


import com.jiayue.ipfcst.common.data.abst.AbstractBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 发电计划
 *
 * @author xsl
 * @version 2.1.1
 * @since 2019/5/29 9:14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class PowerPlanSD extends AbstractBaseEntity {


    /**
     * 编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "myid")
    @GenericGenerator(name = "myid", strategy = "com.jiayue.ipfcst.common.data.entity.id.CustomIDGenerator")
    @Column
    private Integer id;

    /*计划时间,单位：毫秒*/
    @Column(name = "PLAN_TIME")
    private Long planTime;

    /*计划值*/
    @Column(name = "PLAN_VALUE")
    private Float planValue;

}

