# rishyendra30416/2400030416-fsad-skill-exam architecture

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

- Interactive diagram: https://gitdiagram.com/rishyendra30416/2400030416-fsad-skill-exam
- Repository: https://github.com/rishyendra30416/2400030416-fsad-skill-exam

## Overview

This small Hibernate demo creates a Movie record, updates it with HQL, and reports success. ClientDemo owns both operations and configures Hibernate with the movie mapping; the Movie entity maps to the movie table. The configuration file is present, but its contents were not provided, so the database connection target cannot be identified. The graph shows only relationships supported by the excerpts, with the ORM-to-database persistence link marked unverified.

Main entry points: [`src/main/java/com/klef/fsad/exam/ClientDemo.java`](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/ClientDemo.java) (Client demo), [`src/main/java/com/klef/fsad/exam/Movie.java`](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/Movie.java) (Movie entity), [`src/main/resources/hibernate.cfg.xml`](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/resources/hibernate.cfg.xml) (Hibernate config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Demo Client"]
  node_demo["Client demo<br/>[ClientDemo.java]"]
end

subgraph group_persistence["Persistence"]
  node_hibernate["Hibernate ORM"]
  node_movie["Movie entity<br/>[Movie.java]"]
  node_config["Hibernate config<br/>[hibernate.cfg.xml]"]
  node_database[("Movie database")]
end

node_user(("Demo runner"))

node_user -->|"runs"| node_demo
node_demo -->|"loads config"| node_config
node_demo -->|"creates entity"| node_movie
node_demo -->|"opens session"| node_hibernate
node_hibernate -.->|"persists entity"| node_database

click node_demo "https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/ClientDemo.java"
click node_movie "https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/Movie.java"
click node_config "https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/resources/hibernate.cfg.xml"

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_demo toneBlue
class node_hibernate,node_movie,node_config,node_database toneAmber
class node_user toneIndigo
```

## Components

### Demo Client

- [Client demo](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/ClientDemo.java): `src/main/java/com/klef/fsad/exam/ClientDemo.java`

### Persistence

- **Hibernate ORM**
- [Movie entity](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/java/com/klef/fsad/exam/Movie.java): `src/main/java/com/klef/fsad/exam/Movie.java`
- [Hibernate config](https://github.com/rishyendra30416/2400030416-fsad-skill-exam/blob/main/src/main/resources/hibernate.cfg.xml): `src/main/resources/hibernate.cfg.xml`
- **Movie database**

### Other components

- **Demo runner**

## Connections

- Demo runner → Client demo: runs (evidence: `src/main/java/com/klef/fsad/exam/ClientDemo.java`)
- Client demo → Hibernate config: loads config (evidence: `src/main/java/com/klef/fsad/exam/ClientDemo.java`)
- Client demo → Movie entity: creates entity (evidence: `src/main/java/com/klef/fsad/exam/ClientDemo.java`)
- Client demo → Hibernate ORM: opens session (evidence: `src/main/java/com/klef/fsad/exam/ClientDemo.java`)
- Hibernate ORM → Movie database: persists entity
