package com.sudoku.data.model;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *  
 * @author jonathan
 */

public class Comment {
    /** Champs de la classe Comment
     * *
     */
    private String author;
    private String comment;
    private Integer grade;
    /**Méthode de la classe  Comment
     * 
     */
    
    public Comment(){
        comment="";
    }
    public Comment(String comment){
        this.comment=comment;
    }
    
    public Comment(Integer grade){
        this.grade=grade;
    }
    public Comment(String comment,Integer grade){
        this.comment=comment;
        this.grade=grade;
    }
    
    public String getAuthor(){
        return author;
    }
    
    public void setAuthor(String author){
        this.author=author;
    }
    public String getComment(){
        
        return comment;
    }
    public void setComment(String comment){
        this.comment=comment;
    }
    public Integer getGrade(){
        return grade;
    }
    public void setGrade(Integer grade){
        this.grade=grade;
            
    }

}
@@ -242,16 +242,51 @@
 than%0A */
+%0Aimport com.sudoku.data.model.User;
 %0A%0Apublic
@@ -351,24 +351,49 @@
 * *%0A     */%0A
+    private User author;%0A
     private 
@@ -399,22 +399,22 @@
  String 
-author
+pseudo
 ;%0A    pr
@@ -698,32 +698,57 @@
 is.grade=grade;%0A
+        this.comment=%22%22;%0A
     %7D%0A    public
@@ -845,32 +845,205 @@
 rade;%0A    %7D%0A    
+public Comment(String comment,Integer grade, User u)%7B%0A        this.comment=comment;%0A        this.grade=grade;%0A        this.author=u;%0A        this.pseudo=u.getPseudo();%0A    %7D
 %0A    public Stri
@@ -1465,9 +1465,10 @@
 %0A    %7D%0A%0A
-
 %7D
+%0A

Update Comment.java