Ver código fonte

dev en cours

rajah 1 ano atrás
pai
commit
bb8216a1f6

+ 1 - 1
build.gradle

@@ -1,7 +1,7 @@
 plugins {
 	id 'java'
 	id 'war'
-	id 'org.springframework.boot' version '3.4.2'
+	id 'org.springframework.boot' version '3.4.3'
 	id 'io.spring.dependency-management' version '1.1.7'
 }
 

+ 0 - 81
src/main/java/fr/triplea/demovote/persistence/dao/ParticipantRepository.java

@@ -1,16 +1,13 @@
 package fr.triplea.demovote.persistence.dao;
 
-import java.math.BigDecimal;
 import java.util.List;
 
 import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.jpa.repository.Modifying;
 import org.springframework.data.jpa.repository.NativeQuery;
 import org.springframework.data.repository.query.Param;
 
 import fr.triplea.demovote.persistence.model.Participant;
 import fr.triplea.demovote.persistence.model.Role;
-import jakarta.transaction.Transactional;
 
 public interface ParticipantRepository extends JpaRepository<Participant, Integer> 
 {
@@ -36,84 +33,6 @@ public interface ParticipantRepository extends JpaRepository<Participant, Intege
   @NativeQuery("SELECT DISTINCT p.* FROM vote.participants AS p WHERE p.flag_dodo_sur_place = :dodo AND p.flag_actif IS TRUE ORDER BYp.nom ASC, p.prenom ASC, p.pseudonyme ASC ")
   List<Participant> findBySleepingOnSite(@Param("dodo") boolean flag_dodo_sur_place);
   
-  @Transactional 
-  @Modifying
-  @NativeQuery("INSERT INTO vote.participants ("
-      + "  nom,"
-      + "  prenom,"
-      + "  pseudonyme,"
-      + "  groupe,"
-      + "  delai_deconnexion,"
-      + "  mot_de_passe,"
-      + "  adresse,"
-      + "  code_postal,"
-      + "  ville,"
-      + "  pays,"
-      + "  numero_telephone,"
-      + "  email,"
-      + "  commentaire,"
-      + "  flag_machine,"
-      + "  flag_jour1,"
-      + "  flag_jour2,"
-      + "  flag_jour3,"
-      + "  flag_dodo_sur_place,"
-      + "  flag_amigabus,"
-      + "  status,"
-      + "  mode_paiement,"
-      + "  somme_recue,"
-      + "  flag_arrive "
-      + ") VALUES ("
-      + "  :nom,"
-      + "  :prenom,"
-      + "  :pseudonyme,n"
-      + "  :groupe,n"
-      + "  :delai_deconnexion,"
-      + "  :mot_de_passe,"
-      + "  :adresse,"
-      + "  :code_postal,"
-      + "  :ville,"
-      + "  :pays,"
-      + "  :numero_telephone,"
-      + "  :email,"
-      + "  :commentaire,"
-      + "  :flag_machine,"
-      + "  :flag_jour1,"
-      + "  :flag_jour2,"
-      + "  :flag_jour3,"
-      + "  :flag_dodo_sur_place,"
-      + "  :flag_amigabus,"
-      + "  :status::vote.status_participant,"
-      + "  :mode_paiement::vote.mode_paiement,"
-      + "  :somme_recue,"
-      + "  :flag_arrive"
-      + ") ")
-  public void create(
-    @Param("nom") String nom,
-    @Param("prenom") String prenom,
-    @Param("pseudonyme") String pseudonyme,
-    @Param("groupe") String groupe,
-    @Param("delai_deconnexion") int delai_deconnexion,
-    @Param("mot_de_passe") String mot_de_passe,
-    @Param("adresse") String adresse,
-    @Param("code_postal") String code_postal,
-    @Param("ville") String ville,
-    @Param("pays") String pays,
-    @Param("numero_telephone") String numero_telephone,
-    @Param("email") String email,
-    @Param("status") String tatus,
-    @Param("flag_machine") boolean flag_machine,
-    @Param("commentaire") String commentaire,
-    @Param("flag_jour1") boolean flag_jour1,
-    @Param("flag_jour2") boolean flag_jour2,
-    @Param("flag_jour3") boolean flag_jour3,
-    @Param("flag_dodo_sur_place") boolean flag_dodo_sur_place,
-    @Param("flag_amigabus") boolean flag_amigabus,
-    @Param("mode_paiement") String mode_paiement,
-    @Param("somme_recue") BigDecimal somme_recue,
-    @Param("flag_arrive") boolean flag_arrive
-    );  
-  
-  
   @Override
   void delete(Participant participant);