-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout des requestParam dans les controllers Modif des requêtes sur dates dans les dao remplacement constructeur date par calendar Modification dialect Oracle12c
- Loading branch information
1 parent
65b6ab6
commit 9d91497
Showing
24 changed files
with
232 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
core/src/main/java/fr/abes/item/core/configuration/OracleCustomDriver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
core/src/main/java/fr/abes/item/core/utilitaire/UtilsMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package fr.abes.item.core.utilitaire; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.modelmapper.ModelMapper; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
@Component | ||
@Slf4j | ||
public class UtilsMapper extends ModelMapper { | ||
|
||
/** | ||
* Fonction de mapping générique pour des listes | ||
* | ||
* @param source Liste source | ||
* @param targetClass Classe des objets cibles | ||
* @return Liste des objets cibles | ||
*/ | ||
public <S, T> List<T> mapList(List<S> source, Class<T> targetClass) { | ||
return source | ||
.stream() | ||
.map(element -> this.map(element, targetClass)) | ||
.collect(Collectors.toList()); | ||
} | ||
|
||
/** | ||
* Fonction de mapping générique pour des sets | ||
* | ||
* @param source Liste source | ||
* @param targetClass Classe des objets cibles | ||
* @return Liste des objets cibles | ||
*/ | ||
public <S, T> Set<T> mapSet(Set<S> source, Class<T> targetClass) { | ||
return source | ||
.stream() | ||
.map(element -> this.map(element, targetClass)) | ||
.collect(Collectors.toSet()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package fr.abes.item.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = DemandeModifDto.class, name = "MODIF"), | ||
@JsonSubTypes.Type(value = DemandeExempDto.class, name = "EXEMP"), | ||
@JsonSubTypes.Type(value = DemandeRecouvDto.class, name = "RECOUV"), | ||
}) | ||
public abstract class DemandeDto { | ||
@JsonProperty("id") | ||
protected Integer id; | ||
@JsonProperty("rcr") | ||
protected String rcr; | ||
@JsonProperty("utilisateur") | ||
protected Integer userNum; | ||
@JsonProperty("iln") | ||
protected Integer iln; | ||
@JsonProperty("etatDemande") | ||
protected Integer etatDemande; | ||
@JsonProperty("commentaire") | ||
protected String commentaire; | ||
@JsonProperty("pourcentageProgressionTraitement") | ||
protected Integer pourcentageProgressionTraitement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package fr.abes.item.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@JsonTypeName("EXEMP") | ||
public class DemandeExempDto extends DemandeDto { | ||
@JsonProperty("typeExemp") | ||
private Integer typeExemp; | ||
@JsonProperty("listeZones") | ||
private String listeZones; | ||
@JsonProperty("indexRecherche") | ||
private Integer indexRecherche; | ||
} |
Oops, something went wrong.