Skip to content

Commit

Permalink
Fix elide-model-config build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi-aga committed Mar 28, 2021
1 parent c30dd75 commit b72df48
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class Argument implements Named {

@JsonProperty("values")
@JsonDeserialize(as = LinkedHashSet.class)
@Builder.Default
private Set<String> values = new LinkedHashSet<>();

@JsonProperty("tableSource")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Singular;

import java.util.ArrayList;
import java.util.LinkedHashSet;
Expand Down Expand Up @@ -62,9 +61,11 @@ public class Dimension implements Named {
private String category;

@JsonProperty("hidden")
@Builder.Default
private Boolean hidden = false;

@JsonProperty("readAccess")
@Builder.Default
private String readAccess = "Prefab.Role.All";

@JsonProperty("definition")
Expand All @@ -77,19 +78,21 @@ public class Dimension implements Named {
private Type type;

@JsonProperty("grains")
@Singular
@Builder.Default
private List<Grain> grains = new ArrayList<>();

@JsonProperty("tags")
@JsonDeserialize(as = LinkedHashSet.class)
@Builder.Default
private Set<String> tags = new LinkedHashSet<>();

@JsonProperty("arguments")
@Singular
@Builder.Default
private List<Argument> arguments = new ArrayList<>();

@JsonProperty("values")
@JsonDeserialize(as = LinkedHashSet.class)
@Builder.Default
private Set<String> values = new LinkedHashSet<>();

@JsonProperty("tableSource")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class Join implements Named {
private Join.Type type;

@JsonProperty("kind")
@Builder.Default
private Join.Kind kind = Join.Kind.TOONE;

@JsonProperty("definition")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Singular;

import java.util.ArrayList;
import java.util.LinkedHashSet;
Expand Down Expand Up @@ -58,9 +57,11 @@ public class Measure implements Named {
private String category;

@JsonProperty("hidden")
@Builder.Default
private Boolean hidden = false;

@JsonProperty("readAccess")
@Builder.Default
private String readAccess = "Prefab.Role.All";

@JsonProperty("definition")
Expand All @@ -74,10 +75,11 @@ public class Measure implements Named {

@JsonProperty("tags")
@JsonDeserialize(as = LinkedHashSet.class)
@Builder.Default
private Set<String> tags = new LinkedHashSet<>();

@JsonProperty("arguments")
@Singular
@Builder.Default
private List<Argument> arguments = new ArrayList<>();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Singular;

import java.util.ArrayList;
import java.util.LinkedHashSet;
Expand Down Expand Up @@ -68,9 +67,11 @@ public class Table implements Named {
private String dbConnectionName;

@JsonProperty("isFact")
@Builder.Default
private Boolean isFact = true;

@JsonProperty("hidden")
@Builder.Default
private Boolean hidden = false;

@JsonProperty("description")
Expand All @@ -86,26 +87,28 @@ public class Table implements Named {
private String cardinality;

@JsonProperty("readAccess")
@Builder.Default
private String readAccess = "Prefab.Role.All";

@JsonProperty("joins")
@Singular
@Builder.Default
private List<Join> joins = new ArrayList<>();

@JsonProperty("measures")
@Singular
@Builder.Default
private List<Measure> measures = new ArrayList<>();

@JsonProperty("dimensions")
@Singular
@Builder.Default
private List<Dimension> dimensions = new ArrayList<>();

@JsonProperty("tags")
@JsonDeserialize(as = LinkedHashSet.class)
@Builder.Default
private Set<String> tags = new LinkedHashSet<>();

@JsonProperty("arguments")
@Singular
@Builder.Default
private List<Argument> arguments = new ArrayList<>();

@JsonProperty("extend")
Expand Down

0 comments on commit b72df48

Please sign in to comment.