déplacement des class
This commit is contained in:
BIN
data/test.lck
BIN
data/test.lck
Binary file not shown.
@@ -1,8 +0,0 @@
|
|||||||
package jpa.metier;
|
|
||||||
|
|
||||||
public abstract class Reponse {
|
|
||||||
|
|
||||||
String value;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
package jpa.metier;
|
|
||||||
|
|
||||||
import jakarta.persistence.Entity;
|
|
||||||
|
|
||||||
@Entity
|
|
||||||
public class Session {
|
|
||||||
|
|
||||||
|
|
||||||
protected int codePIN;
|
|
||||||
|
|
||||||
public Session(){
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCodePIN(int codePIN){
|
|
||||||
this.codePIN = codePIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getCodePIN(){
|
|
||||||
return this.codePIN;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
5
src/main/java/metier/Activity.java
Normal file
5
src/main/java/metier/Activity.java
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package jpa.metier;
|
||||||
|
|
||||||
|
public abstract class Activity {
|
||||||
|
|
||||||
|
}
|
||||||
29
src/main/java/metier/Reponse.java
Normal file
29
src/main/java/metier/Reponse.java
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
package jpa.metier;
|
||||||
|
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
|
||||||
|
public abstract class Reponse {
|
||||||
|
@Id
|
||||||
|
int id;
|
||||||
|
String value;
|
||||||
|
Boolean correct;
|
||||||
|
|
||||||
|
public Reponse(){
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(String value){
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue(){
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isCorrect(){
|
||||||
|
return this.correct;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCorrect(Boolean correct){
|
||||||
|
this.correct = correct;
|
||||||
|
}
|
||||||
|
}
|
||||||
38
src/main/java/metier/Session.java
Normal file
38
src/main/java/metier/Session.java
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
package jpa.metier;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.Id;
|
||||||
|
import jakarta.persistence.OneToMany;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
public class Session {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
protected int codePIN;
|
||||||
|
|
||||||
|
@OneToMany
|
||||||
|
ArrayList<Activity> activities;
|
||||||
|
|
||||||
|
public Session(){
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodePIN(int codePIN){
|
||||||
|
this.codePIN = codePIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getCodePIN(){
|
||||||
|
return this.codePIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivities(ArrayList<Activity> activities){
|
||||||
|
this.activities = activities;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<Activity> getActivities(){
|
||||||
|
return this.activities;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/metier/Activity.class
Normal file
BIN
target/classes/metier/Activity.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Choix.class
Normal file
BIN
target/classes/metier/Choix.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Classement.class
Normal file
BIN
target/classes/metier/Classement.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Question.class
Normal file
BIN
target/classes/metier/Question.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Quizz.class
Normal file
BIN
target/classes/metier/Quizz.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Reponse.class
Normal file
BIN
target/classes/metier/Reponse.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Session.class
Normal file
BIN
target/classes/metier/Session.class
Normal file
Binary file not shown.
BIN
target/classes/metier/Utilisateur.class
Normal file
BIN
target/classes/metier/Utilisateur.class
Normal file
Binary file not shown.
Reference in New Issue
Block a user