diff --git a/src/main/java/org/hbp/mip/model/App.java b/src/main/java/org/hbp/mip/model/App.java index 5cf3e7c3e351f7e87e6931beecf06f88b199bf50..2c36deb26d8a25c6267aa917f79fe9f2794f431f 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 f06de881c215e1f1b75be2ba49ca3804907d33f9..3c5f7840c3cce799c818ecc8cd48a7a47e37a5f8 160000 --- a/src/test/db +++ b/src/test/db @@ -1 +1 @@ -Subproject commit f06de881c215e1f1b75be2ba49ca3804907d33f9 +Subproject commit 3c5f7840c3cce799c818ecc8cd48a7a47e37a5f8