# sushant7019/javafullstack architecture

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

- Interactive diagram: https://gitdiagram.com/sushant7019/javafullstack
- Repository: https://github.com/sushant7019/javafullstack

## Overview

This repository is a collection of independent Java examples rather than one integrated product. Its user-to-result workflows are demonstrated separately: console choices drive JDBC table and book operations; the Spring example appears to provide a student web application; and standalone exercises demonstrate small algorithms, file handling, concurrency, and inventory calculations. JDBC call relationships are visible in the excerpts. Spring wiring is not sampled, so its relationships are shown as unverified; the remaining practice examples are grouped by demonstrated behavior.

Main entry points: [`SpringExample/src/main/java/com/example/SpringExample/StudentRestController.java`](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentRestController.java) (Student endpoints), [`SpringExample/src/main/java/com/example/SpringExample/StudRepo.java`](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudRepo.java) (Student repository), [`JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java`](https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java) (Employee CRUD), [`JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java`](https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java) (Batch CRUD demo)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_jdbc["JDBC examples"]
  node_rdbms["Employee CRUD<br/>[JDBC_RDBMS.java]"]
  node_pgdemo["Batch CRUD demo"]
  node_book["Book catalog<br/>[Book.java]"]
end

subgraph group_spring["Spring student app"]
  node_springapp["Spring launcher"]
  node_studentweb["Student endpoints"]
  node_studentdao["Student DAO<br/>[StudentDOA.java]"]
  node_studrepo["Student repository<br/>[StudRepo.java]"]
  node_studententity["Student entity<br/>[StudentEntity.java]"]
  node_studentdb[("Configured database")]
  node_studentview["Index template<br/>[index.html]"]
end

subgraph group_practice["Java practice"]
  node_grocery["Inventory example<br/>[GrocerySystem.java]"]
  node_banking["Concurrent banking"]
  node_filethread["Threaded file copy"]
  node_filefilter["Line removal<br/>[Q3.java]"]
  node_inputlog["Input logger<br/>[Q1.java]"]
  node_dateops["Date conversion<br/>[Q4.java]"]
  node_genericsearch["Generic searches"]
  node_substring["Substring search<br/>[FindSub.java]"]
  node_exceptions["Exception examples"]
end

node_console(("Console user"))
node_postgres[("PostgreSQL")]

node_console -->|"chooses operations"| node_rdbms
node_rdbms -->|"runs SQL"| node_postgres
node_console -->|"chooses operations"| node_book
node_book -->|"reads and writes"| node_postgres
node_pgdemo -->|"runs CRUD"| node_postgres
node_console -.->|"runs demo"| node_pgdemo
node_console -.->|"sends requests"| node_studentweb
node_studentweb -.->|"delegates to"| node_studentdao
node_studentdao -.->|"uses repository"| node_studrepo
node_studrepo -.->|"persists entity"| node_studententity
node_studrepo -.->|"accesses database"| node_studentdb
node_studentweb -.->|"renders view"| node_studentview
node_springapp -.->|"starts application"| node_studentweb

click node_rdbms "https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java"
click node_pgdemo "https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java"
click node_book "https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/Book.java"
click node_springapp "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/SpringExampleApplication.java"
click node_studentweb "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentRestController.java"
click node_studentdao "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentDOA.java"
click node_studrepo "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudRepo.java"
click node_studententity "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentEntity.java"
click node_studentdb "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/resources/application.properties"
click node_studentview "https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/resources/templates/index.html"
click node_grocery "https://github.com/sushant7019/javafullstack/blob/main/intership/src/pack1/GrocerySystem.java"
click node_banking "https://github.com/sushant7019/javafullstack/blob/main/intership/src/MultiAssign/BankingApplicationLambda.java"
click node_filethread "https://github.com/sushant7019/javafullstack/blob/main/intership/src/MultiAssign/FileMultithreading.java"
click node_filefilter "https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q3.java"
click node_inputlog "https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q1.java"
click node_dateops "https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q4.java"
click node_genericsearch "https://github.com/sushant7019/javafullstack/blob/main/intership/src/genAssign/CheckTwoEleExist.java"
click node_substring "https://github.com/sushant7019/javafullstack/blob/main/intership/src/genAssign/FindSub.java"
click node_exceptions "https://github.com/sushant7019/javafullstack/blob/main/intership/src/pack1/ExceptionHandling.java"

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_rdbms,node_pgdemo,node_book,node_console toneBlue
class node_springapp,node_studentweb,node_studentdao,node_studrepo,node_studententity,node_studentdb,node_studentview,node_postgres toneAmber
class node_grocery,node_banking,node_filethread,node_filefilter,node_inputlog,node_dateops,node_genericsearch,node_substring,node_exceptions toneMint
```

## Components

### JDBC examples

- [Employee CRUD](https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java): `JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java`
- [Batch CRUD demo](https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java): `JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java`
- [Book catalog](https://github.com/sushant7019/javafullstack/blob/main/JDBC__Example/src/main/java/jdbcEx/Book.java): `JDBC__Example/src/main/java/jdbcEx/Book.java`

### Spring student app

- [Spring launcher](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/SpringExampleApplication.java): `SpringExample/src/main/java/com/example/SpringExample/SpringExampleApplication.java`
- [Student endpoints](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentRestController.java): `SpringExample/src/main/java/com/example/SpringExample/StudentRestController.java`
- [Student DAO](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentDOA.java): `SpringExample/src/main/java/com/example/SpringExample/StudentDOA.java`
- [Student repository](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudRepo.java): `SpringExample/src/main/java/com/example/SpringExample/StudRepo.java`
- [Student entity](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/java/com/example/SpringExample/StudentEntity.java): `SpringExample/src/main/java/com/example/SpringExample/StudentEntity.java`
- [Configured database](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/resources/application.properties): `SpringExample/src/main/resources/application.properties`
- [Index template](https://github.com/sushant7019/javafullstack/blob/main/SpringExample/src/main/resources/templates/index.html): `SpringExample/src/main/resources/templates/index.html`

### Java practice

- [Inventory example](https://github.com/sushant7019/javafullstack/blob/main/intership/src/pack1/GrocerySystem.java): `intership/src/pack1/GrocerySystem.java`
- [Concurrent banking](https://github.com/sushant7019/javafullstack/blob/main/intership/src/MultiAssign/BankingApplicationLambda.java): `intership/src/MultiAssign/BankingApplicationLambda.java`
- [Threaded file copy](https://github.com/sushant7019/javafullstack/blob/main/intership/src/MultiAssign/FileMultithreading.java): `intership/src/MultiAssign/FileMultithreading.java`
- [Line removal](https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q3.java): `intership/src/FiveQuestions/Q3.java`
- [Input logger](https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q1.java): `intership/src/FiveQuestions/Q1.java`
- [Date conversion](https://github.com/sushant7019/javafullstack/blob/main/intership/src/FiveQuestions/Q4.java): `intership/src/FiveQuestions/Q4.java`
- [Generic searches](https://github.com/sushant7019/javafullstack/blob/main/intership/src/genAssign/CheckTwoEleExist.java): `intership/src/genAssign/CheckTwoEleExist.java`
- [Substring search](https://github.com/sushant7019/javafullstack/blob/main/intership/src/genAssign/FindSub.java): `intership/src/genAssign/FindSub.java`
- [Exception examples](https://github.com/sushant7019/javafullstack/blob/main/intership/src/pack1/ExceptionHandling.java): `intership/src/pack1/ExceptionHandling.java`

### Other components

- **Console user**
- **PostgreSQL**

## Connections

- Console user → Employee CRUD: chooses operations (evidence: `JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java`)
- Employee CRUD → PostgreSQL: runs SQL (evidence: `JDBC__Example/src/main/java/jdbcEx/JDBC_RDBMS.java`)
- Console user → Book catalog: chooses operations (evidence: `JDBC__Example/src/main/java/jdbcEx/Book.java`)
- Book catalog → PostgreSQL: reads and writes (evidence: `JDBC__Example/src/main/java/jdbcEx/Book.java`)
- Batch CRUD demo → PostgreSQL: runs CRUD (evidence: `JDBC__Example/src/main/java/jdbcEx/JDBC_Demo_PostgreSQL.java`)
- Console user → Batch CRUD demo: runs demo
- Console user → Student endpoints: sends requests
- Student endpoints → Student DAO: delegates to
- Student DAO → Student repository: uses repository
- Student repository → Student entity: persists entity
- Student repository → Configured database: accesses database
- Student endpoints → Index template: renders view
- Spring launcher → Student endpoints: starts application
