File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/kotlin/com/ctrlhub/core/assets/equipment/resource Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,32 +54,32 @@ class EquipmentModel @JsonCreator constructor(
54
54
@JsonProperty(" description" ) var description : String? = null ,
55
55
@JsonProperty(" specification" ) var specification : EquipmentModelSpecification ? = null ,
56
56
57
- @Relationship(" categories " )
58
- var categories : List < EquipmentCategory > = emptyList() ,
57
+ @Relationship(" category " )
58
+ var category : EquipmentCategory ? = null ,
59
59
60
60
@Relationship(" manufacturer" )
61
61
var manufacturer : EquipmentManufacturer ? = null ,
62
62
) {
63
63
constructor (): this (
64
64
id = " " ,
65
65
name = " " ,
66
- categories = emptyList(),
67
66
description = null ,
68
67
specification = null ,
68
+ category = null ,
69
69
manufacturer = null
70
70
)
71
71
}
72
72
73
73
class EquipmentModelSpecification @JsonCreator constructor(
74
- @JsonProperty(" vibration" ) val vibration : EquipmentSpecificationVibration ? = null
74
+ @JsonProperty(" vibration" ) var vibration : EquipmentSpecificationVibration ? = null
75
75
) {
76
76
constructor (): this (
77
77
vibration = null
78
78
)
79
79
}
80
80
81
81
class EquipmentSpecificationVibration @JsonCreator constructor(
82
- @JsonProperty(" magnitude" ) val magnitude : Double = 0.0
82
+ @JsonProperty(" magnitude" ) var magnitude : Double = 0.0
83
83
) {
84
84
constructor (): this (
85
85
magnitude = 0.0
You can’t perform that action at this time.
0 commit comments