|
|
@@ -0,0 +1,71 @@
|
|
|
+package com.uas.platform.b2b.erp.listen.model;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Author: huj
|
|
|
+ * @Date: Created in 16:04 2018/11/27.
|
|
|
+ */
|
|
|
+@Table(name = "listen$erp", indexes = {@Index(name = "unique_mac_address",
|
|
|
+ columnList = "mac_address", unique = true)})
|
|
|
+@Entity
|
|
|
+public class Listen {
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ @Column(name = "id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @Column(name = "mac_address")
|
|
|
+ private String macAddress;
|
|
|
+
|
|
|
+ @Column(name = "name", length = 2000)
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @Column(name = "date")
|
|
|
+ private Date date;
|
|
|
+
|
|
|
+ @Column(name = "description")
|
|
|
+ private String description;
|
|
|
+
|
|
|
+ public String getDescription() {
|
|
|
+ return description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDescription(String description) {
|
|
|
+ this.description = description;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMacAddress() {
|
|
|
+ return macAddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMacAddress(String macAddress) {
|
|
|
+ this.macAddress = macAddress;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getDate() {
|
|
|
+ return date;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDate(Date date) {
|
|
|
+ this.date = date;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+}
|