|
@@ -40,9 +40,13 @@ public class DeviceProductEntity extends GenericEntity<String> implements Record
|
|
|
private String name;
|
|
|
|
|
|
@Comment("所属项目")
|
|
|
- @Column(name = "project_id",length = 32)
|
|
|
+ @Column(name = "project_id",length = 64)
|
|
|
private String projectId;
|
|
|
|
|
|
+ @Comment("图片地址")
|
|
|
+ @Column(name = "photo_url", length = 1024)
|
|
|
+ private String photoUrl;
|
|
|
+
|
|
|
@Comment("项目名称")
|
|
|
@Column(name = "project_name")
|
|
|
private String projectName;
|
|
@@ -52,9 +56,13 @@ public class DeviceProductEntity extends GenericEntity<String> implements Record
|
|
|
private String describe;
|
|
|
|
|
|
@Comment("分类ID")
|
|
|
- @Column(name = "classified_id")
|
|
|
+ @Column(name = "classified_id",length = 64)
|
|
|
private String classifiedId;
|
|
|
|
|
|
+ @Column
|
|
|
+ @Comment("分类名称")
|
|
|
+ private String classifiedName;
|
|
|
+
|
|
|
@Comment("消息协议: Alink,JetLinks")
|
|
|
@Column(name = "message_protocol")
|
|
|
@NotBlank(message = "消息协议不能为空",groups = CreateGroup.class)
|
|
@@ -63,6 +71,10 @@ public class DeviceProductEntity extends GenericEntity<String> implements Record
|
|
|
})
|
|
|
private String messageProtocol;
|
|
|
|
|
|
+ @Column
|
|
|
+ @Comment("协议名称")
|
|
|
+ private String protocolName;
|
|
|
+
|
|
|
@Comment("协议元数据")
|
|
|
@Column(name = "metadata")
|
|
|
@ColumnType(jdbcType = JDBCType.CLOB)
|