zhangf
2024-07-26 698995469a3fcdc3164fc486d18bdbe059b6c92e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.gkhy.fourierSpecialGasMonitor.entity;
 
import lombok.Data;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
 
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;
 
/**
 * @author Mr.huang
 * @decription
 * @date 2023/8/9 16:34
 */
@Entity
@Table(name = "gas_warn_log")
@Data
public class GasWarnLog {
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
 
    private String content;
 
    private LocalDateTime warnTime;
 
    private Integer gasCategoryId;
 
    private String gasMolecularFormula;
 
    private String gasName;
 
    private String gasUnit;
 
    private Double gasConcentrationThreshold;
 
    private Double gasConcentration;
 
    private Integer gasThresholdId;
 
    private String gasThresholdName;
 
    private Byte status;
 
    private Long handlerId;
 
    private String handlerName;
 
    private String handlerDesc;
 
    private String handlerRealName;
 
    private LocalDateTime handlerTime;
 
    @OneToMany(fetch = FetchType.EAGER,cascade = {CascadeType.REFRESH})
    @Fetch(FetchMode.SUBSELECT)
    @JoinColumn(name = "warnLogId",referencedColumnName = "id",insertable =false ,updatable = false)
    private List<GasWarnLogSmsUser> gasWarnLogSmsUsers;
 
}