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.
45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
package com.rehome.mqttclienttemperature.entity;
|
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.Data;
|
|
import org.hibernate.annotations.Proxy;
|
|
import org.springframework.data.annotation.CreatedDate;
|
|
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 WebServiceProvince implements Serializable {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@ApiModelProperty(value = "主键")
|
|
private Long id;
|
|
|
|
@ApiModelProperty(value = "洲、国内外省份")
|
|
@Column(length = 100)
|
|
private String provinceName;
|
|
|
|
@ApiModelProperty(value = "日期")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
@CreatedDate
|
|
private Date createDate;
|
|
|
|
@ApiModelProperty(value = "时")
|
|
@Column(length = 20)
|
|
private String dataHour;
|
|
|
|
@ApiModelProperty(value = "分")
|
|
@Column(length = 20)
|
|
private String dataMinute;
|
|
|
|
@ApiModelProperty(value = "秒")
|
|
@Column(length = 20)
|
|
private String dataSecond;
|
|
}
|