Merge remote-tracking branch 'origin/main'
# Conflicts: # src/main/java/metier/Question.java # src/main/java/metier/Quizz.java # src/main/java/metier/Reponse.java # src/main/java/metier/Session.java
This commit is contained in:
BIN
data/test.lck
BIN
data/test.lck
Binary file not shown.
@@ -1,21 +0,0 @@
|
|||||||
package metier;
|
|
||||||
|
|
||||||
import jakarta.persistence.JoinColumn;
|
|
||||||
import jakarta.persistence.ManyToOne;
|
|
||||||
|
|
||||||
import jakarta.persistence.GeneratedValue;
|
|
||||||
import jakarta.persistence.Id;
|
|
||||||
|
|
||||||
public abstract class Activity {
|
|
||||||
@Id
|
|
||||||
@GeneratedValue
|
|
||||||
public int id;
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name="id_utilisateur")
|
|
||||||
private Utilisateur utilisateur;
|
|
||||||
|
|
||||||
public Activity(){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
package metier;
|
|
||||||
|
|
||||||
public class Classement {
|
|
||||||
private Question question;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,10 +1,37 @@
|
|||||||
package metier;
|
package metier;
|
||||||
|
|
||||||
|
import jakarta.persistence.GeneratedValue;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.JoinColumn;
|
||||||
|
import jakarta.persistence.ManyToOne;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class Quizz extends Activity implements Serializable {
|
public class Quizz extends Activity implements Serializable {
|
||||||
|
|
||||||
|
public int id;
|
||||||
|
private Utilisateur utilisateur;
|
||||||
|
|
||||||
public Quizz(){
|
public Quizz(){
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue
|
||||||
|
public int getId(){
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Integer id){
|
||||||
|
this.id=id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ManyToOne
|
||||||
|
@JoinColumn(name="id_utilisateur")
|
||||||
|
public Utilisateur getUtilisateur(){
|
||||||
|
return utilisateur;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUtilisateur(Utilisateur u){
|
||||||
|
this.utilisateur=u;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ import jakarta.persistence.Id;
|
|||||||
|
|
||||||
public abstract class Reponse implements Serializable {
|
public abstract class Reponse implements Serializable {
|
||||||
private int id;
|
private int id;
|
||||||
|
private ArrayList<String> reponses;
|
||||||
ArrayList<String> reponses;
|
|
||||||
|
|
||||||
|
|
||||||
public Reponse(){}
|
public Reponse(){}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class Utilisateur implements Serializable {
|
|||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "utilisateur")
|
@OneToMany(mappedBy = "utilisateur")
|
||||||
private List<Activity> activities;
|
private List<Quizz> activities;
|
||||||
|
|
||||||
public Utilisateur() {}
|
public Utilisateur() {}
|
||||||
|
|
||||||
|
|||||||
BIN
target/classes/DAO/ChoixDAO.class
Normal file
BIN
target/classes/DAO/ChoixDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/QuestionDAO.class
Normal file
BIN
target/classes/DAO/QuestionDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/QuizzDAO.class
Normal file
BIN
target/classes/DAO/QuizzDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/ReponseCourteDAO.class
Normal file
BIN
target/classes/DAO/ReponseCourteDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/ReponseDAO.class
Normal file
BIN
target/classes/DAO/ReponseDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/SessionDAO.class
Normal file
BIN
target/classes/DAO/SessionDAO.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/Tous.class
Normal file
BIN
target/classes/DAO/Tous.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/TousDAOImpl.class
Normal file
BIN
target/classes/DAO/TousDAOImpl.class
Normal file
Binary file not shown.
BIN
target/classes/DAO/UtilisateurDAO.class
Normal file
BIN
target/classes/DAO/UtilisateurDAO.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user