From 68f463e2aaf1bd9e2371c959aa4bb8285f97415e Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Thu, 14 Jan 2016 08:51:53 +0100
Subject: [PATCH] fixed Variable model

---
 src/main/java/org/hbp/mip/model/Variable.java | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/main/java/org/hbp/mip/model/Variable.java b/src/main/java/org/hbp/mip/model/Variable.java
index 08c8d97ff..044cca2f7 100644
--- a/src/main/java/org/hbp/mip/model/Variable.java
+++ b/src/main/java/org/hbp/mip/model/Variable.java
@@ -31,6 +31,7 @@ public class Variable {
     private Integer length = null;
     private Boolean isVariable = null;
     private Boolean isGrouping = null;
+    private Boolean isCovariable = null;
     private Boolean isFilter = null;
     @ManyToMany(fetch = FetchType.EAGER)
     private List<Value> values = new LinkedList<Value>();
@@ -142,6 +143,19 @@ public class Variable {
         this.isGrouping = isGrouping;
     }
 
+    /**
+     * Is it a co-variable ?
+     **/
+    @ApiModelProperty(value = "Is it a co-variable ?")
+    @JsonProperty("isCovariable")
+    public Boolean getIsCovariable() {
+        return isCovariable;
+    }
+
+    public void setIsCovariable(Boolean isCovariable) {
+        this.isCovariable = isCovariable;
+    }
+
     /**
      * Is it a filter ?
      **/
@@ -180,6 +194,7 @@ public class Variable {
         sb.append("  length: ").append(length).append("\n");
         sb.append("  isVariable: ").append(isVariable).append("\n");
         sb.append("  isGrouping: ").append(isGrouping).append("\n");
+        sb.append("  isGrouping: ").append(isCovariable).append("\n");
         sb.append("  isFilter: ").append(isFilter).append("\n");
         sb.append("  values: ").append(values).append("\n");
         sb.append("}\n");
-- 
GitLab