Commit 8e455ba8 authored by Mohamed Khalil Labidi's avatar Mohamed Khalil Labidi
Browse files

Set FetchType to eager for CloudConfiguration properties

parent 1e1fbc45
...@@ -7,6 +7,7 @@ import lombok.NoArgsConstructor; ...@@ -7,6 +7,7 @@ import lombok.NoArgsConstructor;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.ElementCollection; import javax.persistence.ElementCollection;
import javax.persistence.Embeddable; import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import java.io.Serializable; import java.io.Serializable;
import java.util.Map; import java.util.Map;
import java.util.Objects; import java.util.Objects;
...@@ -23,7 +24,7 @@ public class CloudConfiguration implements Serializable { ...@@ -23,7 +24,7 @@ public class CloudConfiguration implements Serializable {
private String nodeGroup = null; private String nodeGroup = null;
@Column(name = "PROPERTIES") @Column(name = "PROPERTIES")
@ElementCollection(targetClass=String.class) @ElementCollection(targetClass=String.class, fetch = FetchType.EAGER)
@JsonProperty("properties") @JsonProperty("properties")
private Map<String, String> properties = null; private Map<String, String> properties = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment