You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
Java
52 lines
1.3 KiB
Java
|
2 years ago
|
package com.rehome.mqttclienttemperature.entity;
|
||
|
|
|
||
|
|
import io.swagger.annotations.ApiModelProperty;
|
||
|
|
import lombok.Data;
|
||
|
|
import org.hibernate.annotations.Proxy;
|
||
|
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||
|
|
import javax.persistence.*;
|
||
|
|
import java.io.Serializable;
|
||
|
|
import java.util.Date;
|
||
|
|
|
||
|
|
@EntityListeners(AuditingEntityListener.class)
|
||
|
|
@Proxy(lazy = false)
|
||
|
|
@Data
|
||
|
|
@Entity
|
||
|
|
public class Temperature implements Serializable {
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
@ApiModelProperty(value = "主键")
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "温度")
|
||
|
|
private Double temperature;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "湿度")
|
||
|
|
private Double humidity;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "日期")
|
||
|
|
@Column(length=20)
|
||
|
|
private String dataDate;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "时")
|
||
|
|
@Column(length=20)
|
||
|
|
private String dataHour;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "分")
|
||
|
|
@Column(length=20)
|
||
|
|
private String dataMinute;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "主题")
|
||
|
|
@Column(length=60)
|
||
|
|
private String topic;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "位置描述")
|
||
|
|
@Column(length=80)
|
||
|
|
private String locationDesc;
|
||
|
|
|
||
|
|
@ApiModelProperty(value = "时间")
|
||
|
|
@Temporal(TemporalType.TIMESTAMP)
|
||
|
|
private Date createDate;
|
||
|
|
|
||
|
|
}
|