Commit 40a994038e6d4532a37251a0c77ca80ce602e1b6
1 parent
29b2e6a6
Restore DeviceProfileEntity fields
Showing
1 changed file
with
4 additions
and
0 deletions
... | ... | @@ -117,6 +117,7 @@ public final class DeviceProfileEntity extends BaseSqlEntity<DeviceProfile> impl |
117 | 117 | this.setCreatedTime(deviceProfile.getCreatedTime()); |
118 | 118 | this.name = deviceProfile.getName(); |
119 | 119 | this.type = deviceProfile.getType(); |
120 | + this.image = deviceProfile.getImage(); | |
120 | 121 | this.transportType = deviceProfile.getTransportType(); |
121 | 122 | this.provisionType = deviceProfile.getProvisionType(); |
122 | 123 | this.description = deviceProfile.getDescription(); |
... | ... | @@ -125,6 +126,9 @@ public final class DeviceProfileEntity extends BaseSqlEntity<DeviceProfile> impl |
125 | 126 | if (deviceProfile.getDefaultRuleChainId() != null) { |
126 | 127 | this.defaultRuleChainId = deviceProfile.getDefaultRuleChainId().getId(); |
127 | 128 | } |
129 | + if (deviceProfile.getDefaultDashboardId() != null) { | |
130 | + this.defaultDashboardId = deviceProfile.getDefaultDashboardId().getId(); | |
131 | + } | |
128 | 132 | this.defaultQueueName = deviceProfile.getDefaultQueueName(); |
129 | 133 | this.provisionDeviceKey = deviceProfile.getProvisionDeviceKey(); |
130 | 134 | if (deviceProfile.getFirmwareId() != null) { | ... | ... |