feat: accumulated work — PI-SPI, KYC, RLS, mutuelle parts, comptabilité PDF + startup fixes
## PI-SPI BCEAO (P0.3 — deadline 30/06/2026)
- package payment/pispi/ complet : PispiAuth (OAuth2), PispiClient (HTTP brut),
PispiIso20022Mapper (pacs.008/002), PispiSignatureVerifier (HMAC-SHA256),
PispiWebhookResource (/api/pispi/webhook), DTOs ISO 20022
- PaymentOrchestrator + PaymentProviderRegistry pour l'orchestration multi-provider
- Mode mock automatique si credentials absents (dev)
## KYC AML
- entity/KycDossier, KycResource, KycAmlService + tests
- Migration V38 (create_kyc_dossier_table)
## RLS (PostgreSQL Row-Level Security) — isolation multi-tenant
- RlsConnectionInitializer, RlsContextInterceptor, @RlsEnabled annotation
- Migration V39 (PostgreSQL RLS Tenant Isolation) + V42 (app DB roles)
- Tests unitaires RlsConnectionInitializerTest, RlsContextInterceptorTest
- Tests d'intégration RlsCrossTenantIsolationTest (@QuarkusTest + IntegrationTestProfile)
## Mutuelle — Parts sociales
- entity/mutuelle/parts/ComptePartsSociales, TransactionPartsSociales
- Service, resource, mapper, repository + tests
- InteretsEpargneService + ReleveComptePdfService
## Comptabilité PDF
- ComptabilitePdfService (OpenPDF), ComptabilitePdfResource
- Tests ComptabilitePdfServiceTest, ComptabilitePdfResourceTest
## Migrations Flyway (SYSCOHADA + Keycloak Orgs)
- V36 SYSCOHADA Plan Comptable Complet : seeds comptes standards UEMOA,
trigger init_plan_comptable_organisation, alignement schéma V1 → entités
- V37 keycloak_org_id sur organisations (P0.2 migration KC 26)
- V40 provider_defaut sur FormuleAbonnement
- V41 fcm_token sur utilisateurs (FCM notifications push)
## Fixes startup (SmallRye Config 3.20 + schéma)
- 8× @ConfigProperty(defaultValue = "") → Optional<String>
(firebase, pispi.*, mtnmomo, orange) — empty default rejetés par SmallRye 3.20
- application.properties : mappings secrets env var sous %prod. uniquement
- V36 : drop colonne obsolète 'numero' de V1 quand Hibernate a créé 'numero_compte'
- V36 : remplacement UNIQUE global sur journaux_comptables.code par composite
(organisation_id, code) pour autoriser plusieurs orgs avec code 'ACH'/'VTE'/etc
- V39 : escape placeholder ${VAR} → <VAR> dans lignes commentées
(Flyway parser évalue les placeholders même dans les commentaires)
- V41 : table 'membres' → 'utilisateurs' (nom correct selon entité Membre)
- JournalComptable entity : @UniqueConstraint composite au lieu de unique=true
- MembreResource : example @Schema JSON valide (['...'] → [])
- IntegrationTestProfile : auto-détection Docker via `docker info`, fallback
vers PostgreSQL local sans DevServices
## Dev config
- application-dev.properties : quarkus.devservices.enabled=false +
quarkus.kafka.devservices.enabled=false (pas besoin de Docker pour dev)
- quarkus.flyway.placeholder-replacement=false
- Secrets dev (wave.*, firebase, pispi) en mode mock automatique
## Phase 8 tests (complète)
- 170 fichiers modifiés/ajoutés, 23425+ insertions
- Tests RBAC (@QuarkusTest) pour MembreResource lifecycle
- Tests OrganisationContextFilter multi-org
- Tests SouscriptionQuotaOptionC, KycAmlService, EmailTemplate, etc.
Résultat : Backend démarre en 64s sur port 8085 avec 36 features installées.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
# Audit PRÉCIS - Migrations Flyway vs Entités JPA
|
||||
Date: 2026-03-16 01:21:41
|
||||
Généré avec extraction réelle des annotations @Table
|
||||
|
||||
## Tables trouvées dans les entités
|
||||
|
||||
| Entité | Table (@Table ou défaut) | Fichier | Dans migrations? |
|
||||
|--------|--------------------------|---------|------------------|
|
||||
| Adresse | `adresses` | Adresse.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| CampagneAgricole | `campagnes_agricoles` | CampagneAgricole.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| AlertConfiguration | `alert_configuration` | AlertConfiguration.java | ✅ V7__Monitoring_System.sql |
|
||||
| AlerteLcbFt | `alertes_lcb_ft` | AlerteLcbFt.java | ✅ V9__Create_Alertes_LCB_FT.sql |
|
||||
| ApproverAction | `approver_actions` | ApproverAction.java | ✅ V6__Create_Finance_Workflow_Tables.sql |
|
||||
| AuditLog | `audit_logs` | AuditLog.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| AyantDroit | `ayants_droit` | AyantDroit.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| Budget | `budgets` | Budget.java | ✅ V6__Create_Finance_Workflow_Tables.sql |
|
||||
| BudgetLine | `budget_lines` | BudgetLine.java | ✅ V6__Create_Finance_Workflow_Tables.sql |
|
||||
| CampagneCollecte | `campagnes_collecte` | CampagneCollecte.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| ContributionCollecte | `contributions_collecte` | ContributionCollecte.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| **CompteComptable** | `compte_comptable` | CompteComptable.java | **❌ MANQUANT** |
|
||||
| CompteWave | `comptes_wave` | CompteWave.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **Configuration** | `configuration` | Configuration.java | **❌ MANQUANT** |
|
||||
| **ConfigurationWave** | `configuration_wave` | ConfigurationWave.java | **❌ MANQUANT** |
|
||||
| Cotisation | `cotisations` | Cotisation.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| DonReligieux | `dons_religieux` | DonReligieux.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| **DemandeAdhesion** | `demande_adhesion` | DemandeAdhesion.java | **❌ MANQUANT** |
|
||||
| DemandeAide | `demandes_aide` | DemandeAide.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **Document** | `document` | Document.java | **❌ MANQUANT** |
|
||||
| **EcritureComptable** | `ecriture_comptable` | EcritureComptable.java | **❌ MANQUANT** |
|
||||
| Evenement | `evenements` | Evenement.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **Favori** | `favori` | Favori.java | **❌ MANQUANT** |
|
||||
| **FormuleAbonnement** | `formule_abonnement` | FormuleAbonnement.java | **❌ MANQUANT** |
|
||||
| EchelonOrganigramme | `echelons_organigramme` | EchelonOrganigramme.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| InscriptionEvenement | `inscriptions_evenement` | InscriptionEvenement.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **IntentionPaiement** | `intention_paiement` | IntentionPaiement.java | **❌ MANQUANT** |
|
||||
| **JournalComptable** | `journal_comptable` | JournalComptable.java | **❌ MANQUANT** |
|
||||
| **LigneEcriture** | `ligne_ecriture` | LigneEcriture.java | **❌ MANQUANT** |
|
||||
| **Membre** | `utilisateurs` | Membre.java | **❌ MANQUANT** |
|
||||
| **MembreOrganisation** | `membre_organisation` | MembreOrganisation.java | **❌ MANQUANT** |
|
||||
| **MembreRole** | `membre_role` | MembreRole.java | **❌ MANQUANT** |
|
||||
| MembreSuivi | `membre_suivi` | MembreSuivi.java | ✅ V5__Create_Membre_Suivi.sql |
|
||||
| **ModuleDisponible** | `module_disponible` | ModuleDisponible.java | **❌ MANQUANT** |
|
||||
| ModuleOrganisationActif | `modules_organisation_actifs` | ModuleOrganisationActif.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| DemandeCredit | `demandes_credit` | DemandeCredit.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| EcheanceCredit | `echeances_credit` | EcheanceCredit.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| GarantieDemande | `garanties_demande` | GarantieDemande.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| CompteEpargne | `comptes_epargne` | CompteEpargne.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| TransactionEpargne | `transactions_epargne` | TransactionEpargne.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| Notification | `notifications` | Notification.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| ProjetOng | `projets_ong` | ProjetOng.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| Organisation | `organisations` | Organisation.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| Paiement | `paiements` | Paiement.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| PaiementObjet | `paiements_objets` | PaiementObjet.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| ParametresCotisationOrganisation | `parametres_cotisation_organisation` | ParametresCotisationOrganisation.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| ParametresLcbFt | `parametres_lcb_ft` | ParametresLcbFt.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **Permission** | `permission` | Permission.java | **❌ MANQUANT** |
|
||||
| PieceJointe | `pieces_jointes` | PieceJointe.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| AgrementProfessionnel | `agrements_professionnels` | AgrementProfessionnel.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| Role | `roles` | Role.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **RolePermission** | `role_permission` | RolePermission.java | **❌ MANQUANT** |
|
||||
| **SouscriptionOrganisation** | `souscription_organisation` | SouscriptionOrganisation.java | **❌ MANQUANT** |
|
||||
| **Suggestion** | `suggestion` | Suggestion.java | **❌ MANQUANT** |
|
||||
| **SuggestionVote** | `suggestion_vote` | SuggestionVote.java | **❌ MANQUANT** |
|
||||
| SystemAlert | `system_alerts` | SystemAlert.java | ✅ V7__Monitoring_System.sql |
|
||||
| SystemLog | `system_logs` | SystemLog.java | ✅ V7__Monitoring_System.sql |
|
||||
| **TemplateNotification** | `template_notification` | TemplateNotification.java | **❌ MANQUANT** |
|
||||
| **Ticket** | `ticket` | Ticket.java | **❌ MANQUANT** |
|
||||
| Tontine | `tontines` | Tontine.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| TourTontine | `tours_tontine` | TourTontine.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| TransactionApproval | `transaction_approvals` | TransactionApproval.java | ✅ V6__Create_Finance_Workflow_Tables.sql |
|
||||
| **TransactionWave** | `transaction_wave` | TransactionWave.java | **❌ MANQUANT** |
|
||||
| TypeReference | `types_reference` | TypeReference.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| **ValidationEtapeDemande** | `validation_etape_demande` | ValidationEtapeDemande.java | **❌ MANQUANT** |
|
||||
| CampagneVote | `campagnes_vote` | CampagneVote.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| Candidat | `candidats` | Candidat.java | ✅ V2__Entity_Schema_Alignment.sql |
|
||||
| WebhookWave | `webhooks_wave` | WebhookWave.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
| WorkflowValidationConfig | `workflow_validation_config` | WorkflowValidationConfig.java | ✅ V1__UnionFlow_Complete_Schema.sql |
|
||||
|
||||
**Résultat**: 45/69 entités ont leur table, 24 manquantes.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user