File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
src/main/kotlin/com/ctrlhub/core
projects/operations/response Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ package com.ctrlhub.core.geo
2
+
3
+ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
4
+ import com.github.jasminb.jsonapi.StringIdHandler
5
+ import com.github.jasminb.jsonapi.annotations.Id
6
+ import com.github.jasminb.jsonapi.annotations.Type
7
+
8
+ @Type(" properties" )
9
+ @JsonIgnoreProperties(ignoreUnknown = true )
10
+ data class Property (
11
+ @Id(StringIdHandler ::class ) val id : String? = null
12
+ )
Original file line number Diff line number Diff line change 1
1
package com.ctrlhub.core.projects.operations.response
2
2
3
3
import com.ctrlhub.core.api.Assignable
4
+ import com.ctrlhub.core.geo.Property
4
5
import com.ctrlhub.core.projects.operations.templates.response.OperationTemplate
5
6
import com.ctrlhub.core.projects.response.Label
6
7
import com.fasterxml.jackson.annotation.JsonCreator
@@ -28,14 +29,17 @@ class Operation @JsonCreator constructor(
28
29
var assignees : java.util.List <Assignable >? = null ,
29
30
30
31
@Relationship(" template" )
31
- var template : OperationTemplate ? = null
32
+ var template : OperationTemplate ? = null ,
33
+
34
+ @Relationship(" properties" )
35
+ var property : java.util.List <Property >? = null ,
32
36
) {
33
37
constructor (): this (
34
38
name = " " ,
35
39
code = " " ,
36
40
description = " " ,
37
41
dates = null ,
38
- labels = emptyList()
42
+ labels = emptyList(),
39
43
)
40
44
}
41
45
@JsonIgnoreProperties(ignoreUnknown = true )
You can’t perform that action at this time.
0 commit comments