test et correction
This commit is contained in:
@@ -24,4 +24,16 @@ public class Question implements Serializable {
|
||||
@ManyToOne
|
||||
@JoinColumn(name="id_quizz")
|
||||
private Quizz quizz;
|
||||
|
||||
public String prettyPrinter(int tab){
|
||||
String res = "";
|
||||
String tabStr = "";
|
||||
for(int i =0; i<tab;i++)tabStr+="\t";
|
||||
|
||||
res += tabStr + "id : " + this.getId() + "\n";
|
||||
res += tabStr + "ennonce : \"" + this.getEnonce() + "\"\n";
|
||||
res += this.getReponse().prettyPrinter(tab);;
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user