# yeadonaye/gestionimmobiliere architecture

> Architecture diagram of the GitHub repository yeadonaye/gestionimmobiliere, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yeadonaye/gestionimmobiliere
- Repository: https://github.com/yeadonaye/gestionimmobiliere

## Overview

This is a Java desktop property-rental management application. Users sign in, manage buildings, rental units, tenants, leases, rents, invoices and related records through a Swing interface; the main controller coordinates actions and persistence through Oracle-backed DAOs. Distinct capabilities also include archiving/restoring records, meter readings, diagnostics, charge calculation and rent-index calculation. The README gives no product detail, and many source files were not sampled, so links for unsampled feature wiring are omitted rather than inferred.

Main entry points: [`src/Modele/dao`](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele/dao) (DAO layer), [`src/Vue/FenetrePrincipale.java`](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/FenetrePrincipale.java) (Main window), [`src/Controleur/Affichage/Gestion_Calculer_Charges.java`](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/Gestion_Calculer_Charges.java) (Charge calculation), [`src/Controleur/GestionFenetrePrincipale.java`](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/GestionFenetrePrincipale.java) (Main controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_login["Sign-in window"]
  node_mainview["Main window"]
  node_forms["Add and edit forms"]
  node_detailviews["Record views"]
  node_invoiceview["Invoice editor"]
end

subgraph group_workflow["Application workflows"]
  node_mainctrl["Main controller"]
  node_authctrl["Login controller"]
  node_addlease["Lease creation"]
  node_addrental["Rental creation"]
  node_diagctrl["Diagnostics view flow"]
  node_chargecalc["Charge calculation"]
  node_irlcalc["Rent index calculation"]
end

subgraph group_domain["Rental domain"]
  node_properties["Buildings and units"]
  node_tenants["Tenants and leases"]
  node_billing["Rent and invoices"]
  node_operations["Meters and records"]
end

subgraph group_persistence["Data persistence"]
  node_daos["DAO layer"]
  node_queryops["SQL query operations"]
end

node_user(("Property manager"))
node_oracle[("Oracle database")]

node_user -->|"opens"| node_login
node_login -->|"delegates login"| node_authctrl
node_authctrl -->|"opens on success"| node_mainview
node_authctrl -->|"connects through"| node_oracle
node_mainview -->|"dispatches actions"| node_mainctrl
node_mainctrl -->|"loads and updates"| node_daos
node_mainctrl -.->|"opens forms"| node_forms
node_mainctrl -.->|"opens views"| node_detailviews
node_forms -->|"submits lease"| node_addlease
node_addlease -->|"persists lease"| node_daos
node_forms -->|"submits rental"| node_addrental
node_addrental -->|"persists rental"| node_daos
node_mainview -->|"opens calculation"| node_chargecalc
node_chargecalc -->|"reads records"| node_daos
node_mainview -->|"opens calculation"| node_irlcalc
node_mainview -.->|"dispatches diagnostics"| node_diagctrl
node_diagctrl -->|"loads diagnostics"| node_daos
node_invoiceview -->|"loads invoice records"| node_daos
node_daos -->|"executes queries"| node_queryops
node_daos -->|"reads and writes"| node_oracle
node_daos -->|"maps records"| node_properties
node_daos -->|"maps records"| node_tenants
node_chargecalc -->|"uses lease data"| node_tenants
node_chargecalc -->|"uses meter data"| node_operations
node_chargecalc -->|"produces charges"| node_billing

click node_login "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/FenetreConnexion.java"
click node_mainview "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/FenetrePrincipale.java"
click node_forms "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Vue/ajouter"
click node_detailviews "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Vue/Affichage"
click node_invoiceview "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/Modification/FenetreModifieFacture.java"
click node_mainctrl "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/GestionFenetrePrincipale.java"
click node_authctrl "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/GestionConnexion.java"
click node_addlease "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Ajouter/GestionAjouterContratDeLocation.java"
click node_addrental "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Ajouter/GestionAjouterLocation.java"
click node_diagctrl "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/GestionAfficherDiagnostics.java"
click node_chargecalc "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/Gestion_Calculer_Charges.java"
click node_irlcalc "https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/Gestion_Calcul_IRL.java"
click node_properties "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele"
click node_tenants "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele"
click node_billing "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele"
click node_operations "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele"
click node_daos "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele/dao"
click node_queryops "https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele/dao/requetes"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_mainview,node_forms,node_detailviews,node_invoiceview toneBlue
class node_mainctrl,node_authctrl,node_addlease,node_addrental,node_diagctrl,node_chargecalc,node_irlcalc,node_oracle toneAmber
class node_properties,node_tenants,node_billing,node_operations toneMint
class node_daos,node_queryops toneRose
class node_user toneIndigo
```

## Components

### Desktop interface

- [Sign-in window](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/FenetreConnexion.java): `src/Vue/FenetreConnexion.java`
- [Main window](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/FenetrePrincipale.java): `src/Vue/FenetrePrincipale.java`
- [Add and edit forms](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Vue/ajouter): `src/Vue/ajouter`
- [Record views](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Vue/Affichage): `src/Vue/Affichage`
- [Invoice editor](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Vue/Modification/FenetreModifieFacture.java): `src/Vue/Modification/FenetreModifieFacture.java`

### Application workflows

- [Main controller](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/GestionFenetrePrincipale.java): `src/Controleur/GestionFenetrePrincipale.java`
- [Login controller](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/GestionConnexion.java): `src/Controleur/GestionConnexion.java`
- [Lease creation](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Ajouter/GestionAjouterContratDeLocation.java): `src/Controleur/Ajouter/GestionAjouterContratDeLocation.java`
- [Rental creation](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Ajouter/GestionAjouterLocation.java): `src/Controleur/Ajouter/GestionAjouterLocation.java`
- [Diagnostics view flow](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/GestionAfficherDiagnostics.java): `src/Controleur/Affichage/GestionAfficherDiagnostics.java`
- [Charge calculation](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/Gestion_Calculer_Charges.java): `src/Controleur/Affichage/Gestion_Calculer_Charges.java`
- [Rent index calculation](https://github.com/yeadonaye/gestionimmobiliere/blob/main/src/Controleur/Affichage/Gestion_Calcul_IRL.java): `src/Controleur/Affichage/Gestion_Calcul_IRL.java`

### Rental domain

- [Buildings and units](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele): `src/Modele`
- [Tenants and leases](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele): `src/Modele`
- [Rent and invoices](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele): `src/Modele`
- [Meters and records](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele): `src/Modele`

### Data persistence

- [DAO layer](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele/dao): `src/Modele/dao`
- [SQL query operations](https://github.com/yeadonaye/gestionimmobiliere/tree/main/src/Modele/dao/requetes): `src/Modele/dao/requetes`

### Other components

- **Property manager**
- **Oracle database**

## Connections

- Property manager → Sign-in window: opens
- Sign-in window → Login controller: delegates login (evidence: `src/Vue/FenetreConnexion.java`)
- Login controller → Main window: opens on success (evidence: `src/Controleur/GestionConnexion.java`)
- Login controller → Oracle database: connects through (evidence: `src/Controleur/GestionConnexion.java`)
- Main window → Main controller: dispatches actions (evidence: `src/Vue/FenetrePrincipale.java`)
- Main controller → DAO layer: loads and updates (evidence: `src/Controleur/GestionFenetrePrincipale.java`)
- Main controller → Add and edit forms: opens forms (evidence: `src/Vue/ajouter/FenetreAjouterFacture.java`)
- Main controller → Record views: opens views (evidence: `src/Controleur/GestionFenetrePrincipale.java`)
- Add and edit forms → Lease creation: submits lease (evidence: `src/Controleur/Ajouter/GestionAjouterContratDeLocation.java`)
- Lease creation → DAO layer: persists lease (evidence: `src/Controleur/Ajouter/GestionAjouterContratDeLocation.java`)
- Add and edit forms → Rental creation: submits rental (evidence: `src/Controleur/Ajouter/GestionAjouterLocation.java`)
- Rental creation → DAO layer: persists rental (evidence: `src/Controleur/Ajouter/GestionAjouterLocation.java`)
- Main window → Charge calculation: opens calculation
- Charge calculation → DAO layer: reads records (evidence: `src/Controleur/Affichage/Gestion_Calculer_Charges.java`)
- Main window → Rent index calculation: opens calculation (evidence: `src/Vue/Calculer/CalculerIRL.java`)
- Main window → Diagnostics view flow: dispatches diagnostics
- Diagnostics view flow → DAO layer: loads diagnostics (evidence: `src/Controleur/Affichage/GestionAfficherDiagnostics.java`)
- Invoice editor → DAO layer: loads invoice records (evidence: `src/Vue/Modification/FenetreModifieFacture.java`)
- DAO layer → SQL query operations: executes queries (evidence: `src/Modele/dao/DaoModele.java`)
- DAO layer → Oracle database: reads and writes (evidence: `src/Modele/dao/DaoModele.java`)
- DAO layer → Buildings and units: maps records (evidence: `src/Modele/dao/DaoBienLouable.java`)
- DAO layer → Tenants and leases: maps records (evidence: `src/Modele/dao/DaoContratDeLocation.java`)
- Charge calculation → Tenants and leases: uses lease data (evidence: `src/Controleur/Affichage/Gestion_Calculer_Charges.java`)
- Charge calculation → Meters and records: uses meter data (evidence: `src/Controleur/Affichage/Gestion_Calculer_Charges.java`)
- Charge calculation → Rent and invoices: produces charges (evidence: `src/Controleur/Affichage/Gestion_Calculer_Charges.java`)
