change question and reponse to 1to1
This commit is contained in:
@@ -11,7 +11,7 @@ import jakarta.persistence.*;
|
||||
@DiscriminatorValue("Reponse")
|
||||
public abstract class Reponse implements Serializable {
|
||||
private int id;
|
||||
private ArrayList<String> reponses;
|
||||
private Question question;
|
||||
|
||||
public Reponse(){}
|
||||
|
||||
@@ -25,12 +25,12 @@ public abstract class Reponse implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setReponses(ArrayList<String> reponses){
|
||||
this.reponses=reponses;
|
||||
}
|
||||
|
||||
public ArrayList<String> getReponses(){
|
||||
return this.reponses;
|
||||
@OneToOne
|
||||
public Question getQuestion(){
|
||||
return this.question;
|
||||
}
|
||||
|
||||
public void setQuestion(Question question){
|
||||
this.question=question;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user