|
@@ -1,9 +1,7 @@
|
|
package com.persagy.server.models.entities
|
|
package com.persagy.server.models.entities
|
|
|
|
|
|
import cn.sagacloud.server.algorithm.models.entities.BaseComponent
|
|
import cn.sagacloud.server.algorithm.models.entities.BaseComponent
|
|
-import com.alibaba.fastjson.annotation.JSONField
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
|
-import com.fasterxml.jackson.annotation.JsonProperty
|
|
|
|
import com.persagy.server.datacenter.models.entities.graphtype.MPoint
|
|
import com.persagy.server.datacenter.models.entities.graphtype.MPoint
|
|
import javax.persistence.Column
|
|
import javax.persistence.Column
|
|
import javax.persistence.Table
|
|
import javax.persistence.Table
|
|
@@ -15,24 +13,18 @@ import javax.persistence.Table
|
|
*/
|
|
*/
|
|
@Table(name = "revit.connector")
|
|
@Table(name = "revit.connector")
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
-class Connector : BaseComponent(){
|
|
|
|
|
|
+class Connector : BaseComponent(),Cloneable{
|
|
|
|
|
|
/** 所属对象的id */
|
|
/** 所属对象的id */
|
|
@Column(name = "belong")
|
|
@Column(name = "belong")
|
|
- @JSONField(serialize = false)
|
|
|
|
|
|
+// @JSONField(serialize = false)
|
|
var belong: String? = null
|
|
var belong: String? = null
|
|
|
|
|
|
/** 所属对象的类型(pipe, duct, others, equipment, component) */
|
|
/** 所属对象的类型(pipe, duct, others, equipment, component) */
|
|
@Column(name = "belong_type")
|
|
@Column(name = "belong_type")
|
|
- @JSONField(serialize = false)
|
|
|
|
|
|
+// @JSONField(serialize = false)
|
|
var belongType: String? = null
|
|
var belongType: String? = null
|
|
|
|
|
|
- /** 名称 */
|
|
|
|
- @Column(name = "name")
|
|
|
|
- @JSONField(name = "name")
|
|
|
|
- @JsonProperty("name")
|
|
|
|
- var name: String? = null
|
|
|
|
-
|
|
|
|
// /** 对应Revit模型id */
|
|
// /** 对应Revit模型id */
|
|
// @ApiModelProperty(value = "对应Revit模型id")
|
|
// @ApiModelProperty(value = "对应Revit模型id")
|
|
// @Column(name = "source_id")
|
|
// @Column(name = "source_id")
|
|
@@ -42,44 +34,44 @@ class Connector : BaseComponent(){
|
|
|
|
|
|
/** 所属域 */
|
|
/** 所属域 */
|
|
@Column(name = "domain")
|
|
@Column(name = "domain")
|
|
- @JSONField(name = "domain")
|
|
|
|
- @JsonProperty("domain")
|
|
|
|
|
|
+// @JSONField(name = "domain")
|
|
|
|
+// @JsonProperty("domain")
|
|
var domain: String? = null
|
|
var domain: String? = null
|
|
|
|
|
|
/** 位置信息 */
|
|
/** 位置信息 */
|
|
@Column(name = "origin")
|
|
@Column(name = "origin")
|
|
- @JSONField(name = "origin")
|
|
|
|
- @JsonProperty("origin")
|
|
|
|
|
|
+// @JSONField(name = "origin")
|
|
|
|
+// @JsonProperty("origin")
|
|
var origin: MPoint? = null
|
|
var origin: MPoint? = null
|
|
|
|
|
|
/** 描述 */
|
|
/** 描述 */
|
|
@Column(name = "description")
|
|
@Column(name = "description")
|
|
- @JSONField(name = "description")
|
|
|
|
- @JsonProperty("description")
|
|
|
|
|
|
+// @JSONField(name = "description")
|
|
|
|
+// @JsonProperty("description")
|
|
var description: String? = null
|
|
var description: String? = null
|
|
|
|
|
|
/** 是否连接其他连接件 */
|
|
/** 是否连接其他连接件 */
|
|
@Column(name = "connected")
|
|
@Column(name = "connected")
|
|
- @JSONField(name = "isConnected")
|
|
|
|
- @JsonProperty("isConnected")
|
|
|
|
|
|
+// @JSONField(name = "isConnected")
|
|
|
|
+// @JsonProperty("isConnected")
|
|
var isConnected: Boolean? = null
|
|
var isConnected: Boolean? = null
|
|
|
|
|
|
/** 所属对象的revit_id */
|
|
/** 所属对象的revit_id */
|
|
@Column(name = "owner")
|
|
@Column(name = "owner")
|
|
- @JSONField(name = "owner")
|
|
|
|
- @JsonProperty("owner")
|
|
|
|
|
|
+// @JSONField(name = "owner")
|
|
|
|
+// @JsonProperty("owner")
|
|
var owner: String? = null
|
|
var owner: String? = null
|
|
|
|
|
|
/** 连接的连接件id */
|
|
/** 连接的连接件id */
|
|
@Column(name = "connected_ids")
|
|
@Column(name = "connected_ids")
|
|
- @JSONField(name = "connectedIds")
|
|
|
|
- @JsonProperty("connectedIds")
|
|
|
|
|
|
+// @JSONField(name = "connectedIds")
|
|
|
|
+// @JsonProperty("connectedIds")
|
|
var connectedIds: ArrayList<String>? = null
|
|
var connectedIds: ArrayList<String>? = null
|
|
|
|
|
|
/** 管道系统类型名称 */
|
|
/** 管道系统类型名称 */
|
|
@Column(name = "mep_system_type")
|
|
@Column(name = "mep_system_type")
|
|
- @JSONField(name = "mepSystemTypeName")
|
|
|
|
- @JsonProperty("mepSystemTypeName")
|
|
|
|
|
|
+// @JSONField(name = "mepSystemTypeName")
|
|
|
|
+// @JsonProperty("mepSystemTypeName")
|
|
var mepSystemType: String? = null
|
|
var mepSystemType: String? = null
|
|
|
|
|
|
// /** 连接件连接的连接件id */
|
|
// /** 连接件连接的连接件id */
|
|
@@ -91,15 +83,22 @@ class Connector : BaseComponent(){
|
|
|
|
|
|
/** 连接件连接的连接件id */
|
|
/** 连接件连接的连接件id */
|
|
@Column(name = "connect_id_json")
|
|
@Column(name = "connect_id_json")
|
|
- @JSONField(name = "connectId")
|
|
|
|
- @JsonProperty("connectId")
|
|
|
|
|
|
+// @JSONField(name = "connectId")
|
|
|
|
+// @JsonProperty("connectId")
|
|
var connectIdJson: ArrayList<String>? = null
|
|
var connectIdJson: ArrayList<String>? = null
|
|
|
|
|
|
var isUsed: Boolean? = null
|
|
var isUsed: Boolean? = null
|
|
|
|
|
|
/** 所属BIMID */
|
|
/** 所属BIMID */
|
|
@Column(name = "belong_bimid")
|
|
@Column(name = "belong_bimid")
|
|
- @JSONField(name = "belongBimId")
|
|
|
|
- @JsonProperty("belongBimId")
|
|
|
|
|
|
+// @JSONField(name = "belongBimId")
|
|
|
|
+// @JsonProperty("belongBimId")
|
|
var belongBimId: String? = null
|
|
var belongBimId: String? = null
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public override fun clone():Connector{
|
|
|
|
+ return super.clone() as Connector
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|