diff --git a/src/main/java/org/ntlab/nemophila/models/accounts/Post.java b/src/main/java/org/ntlab/nemophila/models/accounts/Post.java index aa0f591..e9f93e1 100644 --- a/src/main/java/org/ntlab/nemophila/models/accounts/Post.java +++ b/src/main/java/org/ntlab/nemophila/models/accounts/Post.java @@ -19,8 +19,15 @@ private String comment; @JsonProperty("sid") private String sid; - @JsonProperty("uid") - private String uid; + @JsonProperty("owner") + private Account owner; + + public Post(Account owner, String genre, int rate, String sid){ + this.owner = owner; + this.genre = genre; + this.rate = rate; + this.sid = sid; + } //Getter public String getId() { @@ -47,8 +54,8 @@ public String getSid() { return sid; } - public String getUid() { - return uid; + public Account getOwner() { + return owner; } //Setter @@ -73,10 +80,4 @@ public void setComment(String comment) { this.comment = comment; } - public void setSid(String sid) { - this.sid = sid; - } - public void setUid(String uid) { - this.uid = uid; - } } \ No newline at end of file