|
@@ -1,13 +1,16 @@
|
|
|
package com.zglc.kg.entity;
|
|
|
|
|
|
import lombok.Data;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
import org.neo4j.ogm.annotation.NodeEntity;
|
|
|
import org.neo4j.ogm.annotation.Property;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
-
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
@NodeEntity(label = "device")
|
|
|
public class Device1Entity {
|
|
|
|
|
@@ -15,8 +18,8 @@ public class Device1Entity {
|
|
|
@GeneratedValue
|
|
|
private Long id;
|
|
|
|
|
|
- @Property(name = "device_name")
|
|
|
- private String device_name;
|
|
|
+ @Property(name = "name")
|
|
|
+ private String name;
|
|
|
|
|
|
@Property(name = "device_type")
|
|
|
private Integer device_type;
|
|
@@ -45,111 +48,111 @@ public class Device1Entity {
|
|
|
@Property(name = "mysql_id")
|
|
|
private Integer mysqlId;
|
|
|
|
|
|
- public Device1Entity() {
|
|
|
- }
|
|
|
-
|
|
|
- public Device1Entity(Long id, String device_name, Integer device_type,String device_describe, Integer aircraft_id,
|
|
|
- String aircraft_type,Integer syst_id,String syst_name,Integer subsys_id,String subsys_name,
|
|
|
- Integer mysqlId) {
|
|
|
- this.id = id;
|
|
|
- this.device_name = device_name;
|
|
|
- this.device_type = device_type;
|
|
|
- this.device_describe = device_describe;
|
|
|
- this.aircraft_id = aircraft_id;
|
|
|
- this.aircraft_type = aircraft_type;
|
|
|
- this.syst_id = syst_id;
|
|
|
- this.syst_name = syst_name;
|
|
|
- this.subsys_id = subsys_id;
|
|
|
- this.subsys_name = subsys_name;
|
|
|
- this.mysqlId = mysqlId;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public Long getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(Long id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDevice_name() {
|
|
|
- return device_name;
|
|
|
- }
|
|
|
-
|
|
|
- public void setDevice_name(String device_name) {
|
|
|
- this.device_name = device_name;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getDevice_type() {
|
|
|
- return device_type;
|
|
|
- }
|
|
|
-
|
|
|
- public void setDevice_type(Integer device_type) {
|
|
|
- this.device_type = device_type;
|
|
|
- }
|
|
|
-
|
|
|
- public String getDevice_describe() {
|
|
|
- return device_describe;
|
|
|
- }
|
|
|
-
|
|
|
- public void setDevice_describe(String device_describe) {
|
|
|
- this.device_describe = device_describe;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getAircraft_id() {
|
|
|
- return aircraft_id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAircraft_id(Integer aircraft_id) {
|
|
|
- this.aircraft_id = aircraft_id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getAircraft_type() {
|
|
|
- return aircraft_type;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAircraft_type(String aircraft_type) {
|
|
|
- this.aircraft_type = aircraft_type;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getSyst_id() {
|
|
|
- return syst_id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSyst_id(Integer syst_id) {
|
|
|
- this.syst_id = syst_id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getSyst_name() {
|
|
|
- return syst_name;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSyst_name(String syst_name) {
|
|
|
- this.syst_name = syst_name;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getSubsys_id() {
|
|
|
- return subsys_id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSubsys_id(Integer subsys_id) {
|
|
|
- this.subsys_id = subsys_id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getSubsys_name() {
|
|
|
- return subsys_name;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSubsys_name(String subsys_name) {
|
|
|
- this.subsys_name = subsys_name;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getMysqlId() {
|
|
|
- return mysqlId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setMysqlId(Integer mysqlId) {
|
|
|
- this.mysqlId = mysqlId;
|
|
|
- }
|
|
|
+// public Device1Entity() {
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Device1Entity(Long id, String device_name, Integer device_type,String device_describe, Integer aircraft_id,
|
|
|
+// String aircraft_type,Integer syst_id,String syst_name,Integer subsys_id,String subsys_name,
|
|
|
+// Integer mysqlId) {
|
|
|
+// this.id = id;
|
|
|
+// this.device_name = device_name;
|
|
|
+// this.device_type = device_type;
|
|
|
+// this.device_describe = device_describe;
|
|
|
+// this.aircraft_id = aircraft_id;
|
|
|
+// this.aircraft_type = aircraft_type;
|
|
|
+// this.syst_id = syst_id;
|
|
|
+// this.syst_name = syst_name;
|
|
|
+// this.subsys_id = subsys_id;
|
|
|
+// this.subsys_name = subsys_name;
|
|
|
+// this.mysqlId = mysqlId;
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+// public Long getId() {
|
|
|
+// return id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setId(Long id) {
|
|
|
+// this.id = id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getDevice_name() {
|
|
|
+// return device_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setDevice_name(String device_name) {
|
|
|
+// this.device_name = device_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getDevice_type() {
|
|
|
+// return device_type;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setDevice_type(Integer device_type) {
|
|
|
+// this.device_type = device_type;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getDevice_describe() {
|
|
|
+// return device_describe;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setDevice_describe(String device_describe) {
|
|
|
+// this.device_describe = device_describe;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getAircraft_id() {
|
|
|
+// return aircraft_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setAircraft_id(Integer aircraft_id) {
|
|
|
+// this.aircraft_id = aircraft_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getAircraft_type() {
|
|
|
+// return aircraft_type;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setAircraft_type(String aircraft_type) {
|
|
|
+// this.aircraft_type = aircraft_type;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getSyst_id() {
|
|
|
+// return syst_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setSyst_id(Integer syst_id) {
|
|
|
+// this.syst_id = syst_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getSyst_name() {
|
|
|
+// return syst_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setSyst_name(String syst_name) {
|
|
|
+// this.syst_name = syst_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getSubsys_id() {
|
|
|
+// return subsys_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setSubsys_id(Integer subsys_id) {
|
|
|
+// this.subsys_id = subsys_id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getSubsys_name() {
|
|
|
+// return subsys_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setSubsys_name(String subsys_name) {
|
|
|
+// this.subsys_name = subsys_name;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getMysqlId() {
|
|
|
+// return mysqlId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setMysqlId(Integer mysqlId) {
|
|
|
+// this.mysqlId = mysqlId;
|
|
|
+// }
|
|
|
}
|