Skip to content

Commit 8029466

Browse files
committed
fix: equipment model should allow multiple categories
1 parent b1cc56a commit 8029466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/ctrlhub/core/assets/equipment/resource/EquipmentResources.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@ class EquipmentModel @JsonCreator constructor(
5454
@JsonProperty("description") var description: String? = null,
5555
@JsonProperty("specification") var specification: EquipmentModelSpecification? = null,
5656

57-
@Relationship("category")
58-
var category: EquipmentCategory? = null,
57+
@Relationship("categories")
58+
var categories: List<EquipmentCategory> = emptyList(),
5959

6060
@Relationship("manufacturer")
6161
var manufacturer: EquipmentManufacturer? = null,
6262
) {
6363
constructor(): this(
6464
id = "",
6565
name = "",
66+
categories = emptyList(),
6667
description = null,
6768
specification = null,
68-
category = null,
6969
manufacturer = null
7070
)
7171
}

0 commit comments

Comments
 (0)