fix(sprint-10 backend): @Builder n'expose pas actif() (parent BaseEntity), setter explicite
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 3m27s
Some checks failed
CI/CD Pipeline / pipeline (push) Failing after 3m27s
BaseEntity contient actif (Boolean), mais BeneficiaireEffectif et RoleDelegation utilisent @Builder simple (pas @SuperBuilder) → builder ne propage pas les champs parent. Solution : .build() puis setActif(true). Pas de @SuperBuilder ici (changement de signature diffuse, hors-scope Sprint 10). Tests Sprint 10 backend désormais 12/12 verts (BeneficiaireEffectifService 8 + AuditTrailQueryService 4).
This commit is contained in:
@@ -140,8 +140,8 @@ public class RoleDelegationService {
|
||||
.dateFin(req.dateFin())
|
||||
.motif(req.motif())
|
||||
.statut("ACTIVE")
|
||||
.actif(true)
|
||||
.build();
|
||||
entity.setActif(true);
|
||||
return toResponse(creer(entity, rolesDelegataire));
|
||||
}
|
||||
|
||||
|
||||
@@ -107,8 +107,8 @@ public class BeneficiaireEffectifService {
|
||||
.pepFonction(req.pepFonction())
|
||||
.presenceListesSanctions(Boolean.TRUE.equals(req.presenceListesSanctions()))
|
||||
.detailsListesSanctions(req.detailsListesSanctions())
|
||||
.actif(true)
|
||||
.build();
|
||||
e.setActif(true);
|
||||
|
||||
repository.persist(e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user