Add Session.html and lombok, change property access into field access to lombok.
Tested add Session to user, add method UtilisateurDAO.addToSession Please rerun mvn clean install
This commit is contained in:
@@ -4,44 +4,25 @@ import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@Inheritance(strategy=InheritanceType.JOINED)
|
||||
@DiscriminatorColumn(name="Type_reponse")
|
||||
@DiscriminatorValue("Reponse")
|
||||
public abstract class Reponse implements Serializable {
|
||||
private int id;
|
||||
private Question question;
|
||||
public List<String> reponses;
|
||||
|
||||
public Reponse(){}
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
private int id;
|
||||
|
||||
@OneToOne
|
||||
public Question getQuestion(){
|
||||
return this.question;
|
||||
}
|
||||
|
||||
public void setQuestion(Question question){
|
||||
this.question=question;
|
||||
}
|
||||
|
||||
public List<String> getReponses(){
|
||||
return this.reponses;
|
||||
}
|
||||
|
||||
public void setReponses(List<String> reponses){
|
||||
this.reponses=reponses;
|
||||
}
|
||||
private Question question;
|
||||
public List<String> reponses;
|
||||
|
||||
public String valHTML(){
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user