Commit ae170ba217bc55a13da1f7bfbaa96e4f5167a649
1 parent
5ea684d3
大间隔实体类
Showing
1 changed file
with
104 additions
and
0 deletions
src/main/java/com/bsth/entity/sys/Interval.java
0 → 100644
| 1 | +package com.bsth.entity.sys; | |
| 2 | + | |
| 3 | +import java.util.Date; | |
| 4 | + | |
| 5 | +import javax.persistence.Column; | |
| 6 | +import javax.persistence.Entity; | |
| 7 | +import javax.persistence.GeneratedValue; | |
| 8 | +import javax.persistence.GenerationType; | |
| 9 | +import javax.persistence.Id; | |
| 10 | +import javax.persistence.Table; | |
| 11 | + | |
| 12 | + | |
| 13 | +@Entity | |
| 14 | +@Table(name = "bsth_c_interval") | |
| 15 | +public class Interval { | |
| 16 | + | |
| 17 | + @Id | |
| 18 | + @GeneratedValue(strategy = GenerationType.IDENTITY) | |
| 19 | + private Integer id; | |
| 20 | + | |
| 21 | + /** 大间隔等级 */ | |
| 22 | + private String level; | |
| 23 | + /** 高峰*/ | |
| 24 | + private Integer peak; | |
| 25 | + public Integer getPeak() { | |
| 26 | + return peak; | |
| 27 | + } | |
| 28 | + | |
| 29 | + public void setPeak(Integer peak) { | |
| 30 | + this.peak = peak; | |
| 31 | + } | |
| 32 | + | |
| 33 | + public Integer getTrough() { | |
| 34 | + return trough; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public void setTrough(Integer trough) { | |
| 38 | + this.trough = trough; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public Integer getCreateBy() { | |
| 42 | + return createBy; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public void setCreateBy(Integer createBy) { | |
| 46 | + this.createBy = createBy; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public Date getCreateDate() { | |
| 50 | + return createDate; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void setCreateDate(Date createDate) { | |
| 54 | + this.createDate = createDate; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public Integer getUpdateBy() { | |
| 58 | + return updateBy; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setUpdateBy(Integer updateBy) { | |
| 62 | + this.updateBy = updateBy; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public Date getUpdateDate() { | |
| 66 | + return updateDate; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void setUpdateDate(Date updateDate) { | |
| 70 | + this.updateDate = updateDate; | |
| 71 | + } | |
| 72 | + | |
| 73 | + /** 低谷 */ | |
| 74 | + private Integer trough; | |
| 75 | + | |
| 76 | + @Column(name = "create_by") | |
| 77 | + private Integer createBy; | |
| 78 | + | |
| 79 | + @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | |
| 80 | + private Date createDate; | |
| 81 | + | |
| 82 | + @Column(name = "update_by") | |
| 83 | + private Integer updateBy; | |
| 84 | + | |
| 85 | + @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | |
| 86 | + private Date updateDate; | |
| 87 | + | |
| 88 | + public Integer getId() { | |
| 89 | + return id; | |
| 90 | + } | |
| 91 | + | |
| 92 | + public void setId(Integer id) { | |
| 93 | + this.id = id; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public String getLevel() { | |
| 97 | + return level; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public void setLevel(String level) { | |
| 101 | + this.level = level; | |
| 102 | + } | |
| 103 | + | |
| 104 | +} | ... | ... |