File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
xtraplatform-tiles/src/main/java/de/ii/xtraplatform/tiles Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4242import java .util .Map .Entry ;
4343import java .util .Optional ;
4444import java .util .function .Consumer ;
45+ import java .util .stream .Stream ;
4546import javax .inject .Inject ;
4647import javax .inject .Singleton ;
4748import org .slf4j .Logger ;
@@ -120,6 +121,11 @@ public EntityDataBuilder<? extends EntityData> emptySuperDataBuilder() {
120121 return new ImmutableProviderCommonData .Builder ();
121122 }
122123
124+ @ Override
125+ public List <String > getIgnoreKeys () {
126+ return Stream .concat (super .getIgnoreKeys ().stream (), Stream .of ("levels" )).toList ();
127+ }
128+
123129 @ Override
124130 public Class <? extends EntityData > dataClass () {
125131 return TileProviderFeaturesData .class ;
Original file line number Diff line number Diff line change 77 */
88package de .ii .xtraplatform .tiles .domain ;
99
10+ import com .fasterxml .jackson .annotation .JsonIgnore ;
11+ import com .fasterxml .jackson .annotation .JsonInclude ;
12+ import com .fasterxml .jackson .annotation .JsonInclude .Include ;
1013import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
1114import com .google .common .collect .Range ;
1215import de .ii .xtraplatform .entities .domain .maptobuilder .Buildable ;
@@ -30,10 +33,13 @@ static MinMax of(int min, int max) {
3033 return new ImmutableMinMax .Builder ().min (min ).max (max ).build ();
3134 }
3235
36+ @ JsonInclude (Include .ALWAYS )
3337 int getMin ();
3438
39+ @ JsonInclude (Include .ALWAYS )
3540 int getMax ();
3641
42+ @ JsonInclude (Include .NON_ABSENT )
3743 Optional <Integer > getDefault ();
3844
3945 @ Override
@@ -43,6 +49,7 @@ default ImmutableMinMax.Builder getBuilder() {
4349
4450 abstract class Builder implements BuildableBuilder <MinMax > {}
4551
52+ @ JsonIgnore
4653 @ Value .Lazy
4754 default Range <Integer > asRange () {
4855 return Range .closed (getMin (), getMax ());
You can’t perform that action at this time.
0 commit comments