package com.zhitan.engine.entity;
|
|
import lombok.Data;
|
import org.hibernate.annotations.GenericGenerator;
|
|
import javax.persistence.*;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
|
/**
|
* 尖峰平谷电价时间段实体类
|
* 对应数据库中的electricity_price_date表
|
*/
|
@Data
|
@Entity
|
@Table(name = "electricity_price_date")
|
public class ElectricityPriceDate {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GenericGenerator(name = "uuid", strategy = "uuid2")
|
@GeneratedValue(generator = "uuid")
|
@Column(name = "id", length = 36)
|
private String id;
|
|
/**
|
* 开始时间
|
*/
|
@Column(name = "begin_date")
|
private LocalDate beginDate;
|
|
/**
|
* 结束时间
|
*/
|
@Column(name = "end_date")
|
private LocalDate endDate;
|
|
@Column(name = "create_by", length = 64)
|
private String createBy;
|
|
@Column(name = "create_time")
|
private LocalDateTime createTime;
|
|
@Column(name = "update_by", length = 64)
|
private String updateBy;
|
|
@Column(name = "update_time")
|
private LocalDateTime updateTime;
|
|
@Column(name = "remark", length = 255)
|
private String remark;
|
}
|