From 759789d82b950986d4f262cd0a0d4cd9b68a388d Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Mon, 23 May 2016 11:53:33 +0200
Subject: [PATCH] renamed app.ratingcount and app.totalrating + change type of
 app.description and app.image from varchar to string

---
 src/main/java/org/hbp/mip/model/App.java | 42 ++++++++++++++++++------
 src/test/db                              |  2 +-
 2 files changed, 33 insertions(+), 11 deletions(-)

diff --git a/src/main/java/org/hbp/mip/model/App.java b/src/main/java/org/hbp/mip/model/App.java
index 5cf3e7c3e..2c36deb26 100644
--- a/src/main/java/org/hbp/mip/model/App.java
+++ b/src/main/java/org/hbp/mip/model/App.java
@@ -18,19 +18,32 @@ public class App {
     @Id
     @GeneratedValue(strategy = GenerationType.SEQUENCE)
     private Integer id;
+
     private String name;
+
+    @Column(columnDefinition = "text")
     private String description;
+
     private String author;
+
     private String email;
+
     private String category;
+
     private String link;
+
+    @Column(columnDefinition = "text")
     private String image;
-    private Integer ratings;
-    private Integer ratings_count;
+
+    private Integer totalRating;
+
+    private Integer ratingCount;
+
 
     public App() {
     }
 
+
     public Integer getId() {
         return id;
     }
@@ -39,6 +52,7 @@ public class App {
         this.id = id;
     }
 
+
     public String getName() {
         return name;
     }
@@ -47,6 +61,7 @@ public class App {
         this.name = name;
     }
 
+
     public String getDescription() {
         return description;
     }
@@ -55,6 +70,7 @@ public class App {
         this.description = description;
     }
 
+
     public String getAuthor() {
         return author;
     }
@@ -63,6 +79,7 @@ public class App {
         this.author = author;
     }
 
+
     public String getEmail() {
         return email;
     }
@@ -71,6 +88,7 @@ public class App {
         this.email = email;
     }
 
+
     public String getCategory() {
         return category;
     }
@@ -79,6 +97,7 @@ public class App {
         this.category = category;
     }
 
+
     public String getLink() {
         return link;
     }
@@ -87,6 +106,7 @@ public class App {
         this.link = link;
     }
 
+
     public String getImage() {
         return image;
     }
@@ -95,19 +115,21 @@ public class App {
         this.image = image;
     }
 
-    public Integer getRatings() {
-        return ratings;
+
+    public Integer getTotalRating() {
+        return totalRating;
     }
 
-    public void setRatings(Integer ratings) {
-        this.ratings = ratings;
+    public void setTotalRating(Integer totalRating) {
+        this.totalRating = totalRating;
     }
 
-    public Integer getRatings_count() {
-        return ratings_count;
+
+    public Integer getRatingCount() {
+        return ratingCount;
     }
 
-    public void setRatings_count(Integer ratings_count) {
-        this.ratings_count = ratings_count;
+    public void setRatingCount(Integer ratingCount) {
+        this.ratingCount = ratingCount;
     }
 }
diff --git a/src/test/db b/src/test/db
index f06de881c..3c5f7840c 160000
--- a/src/test/db
+++ b/src/test/db
@@ -1 +1 @@
-Subproject commit f06de881c215e1f1b75be2ba49ca3804907d33f9
+Subproject commit 3c5f7840c3cce799c818ecc8cd48a7a47e37a5f8
-- 
GitLab