File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/java/org/gridsuite/studyconfig/server Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
package org .gridsuite .studyconfig .server .dto ;
8
8
9
+ import com .fasterxml .jackson .annotation .JsonInclude ;
9
10
import io .swagger .v3 .oas .annotations .media .Schema ;
10
11
import jakarta .validation .constraints .NotNull ;
11
12
import lombok .Builder ;
19
20
@ Schema (name = "GlobalFilterDto" , description = "Global filter configuration" )
20
21
public record GlobalFilterInfos (
21
22
22
- @ Schema (description = "Global filter UUID" )
23
- UUID id ,
24
-
23
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
25
24
@ Schema (description = "Generic filter ID" )
26
25
UUID uuid ,
27
26
28
27
@ NotNull (message = "Filter type is mandatory" )
29
28
@ Schema (description = "Filter type" )
30
29
String filterType ,
31
30
31
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
32
32
@ Schema (description = "Filter subtype" )
33
33
String filterSubtype ,
34
34
35
35
@ NotNull (message = "Filter label is mandatory" )
36
36
@ Schema (description = "Filter label" )
37
37
String label ,
38
38
39
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
39
40
@ Schema (description = "Was filter recently applied" )
40
41
boolean recent ,
41
42
43
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
42
44
@ Schema (description = "Generic filter related equipment type" )
43
45
String equipmentType ,
44
46
47
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
45
48
@ Schema (description = "Generic filter path" )
46
49
String path
47
50
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ public static ColumnEntity toColumnEntity(ColumnInfos dto) {
94
94
95
95
public static GlobalFilterInfos toGlobalFilterDto (GlobalFilterEntity entity ) {
96
96
return new GlobalFilterInfos (
97
- entity .getId (),
98
97
entity .getUuid (),
99
98
entity .getFilterType (),
100
99
entity .getFilterSubtype (),
You can’t perform that action at this time.
0 commit comments