# navyasri165/ic architecture

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

- Interactive diagram: https://gitdiagram.com/navyasri165/ic
- Repository: https://github.com/navyasri165/ic

## Overview

This repository is a collection of standalone Java console management examples, not one integrated application. Each system generally takes menu-driven user input, applies domain rules, and uses a DAO for database operations; some also keep in-memory state. The graph groups the examples by domain and includes their principal models and persistence or service layers. The README provides no useful architecture detail, and several source files were not sampled, so relationships for those areas are included only where the source index supports them.

Main entry points: [`bankingsystem/Main.java`](https://github.com/navyasri165/ic/blob/main/bankingsystem/Main.java) (Bank menu), [`empdepmanagement/main.java`](https://github.com/navyasri165/ic/blob/main/empdepmanagement/main.java) (Employee menu), [`librarysystem/Main.java`](https://github.com/navyasri165/ic/blob/main/librarysystem/Main.java) (Library menu), [`librarysystem/LibraryDAO.java`](https://github.com/navyasri165/ic/blob/main/librarysystem/LibraryDAO.java) (Library operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_banking["Banking"]
  node_bank_cli["Bank menu<br/>[Main.java]"]
  node_bank_dao["Account operations"]
  node_account["Bank account<br/>[BankAccount.java]"]
  node_savings["Savings account"]
  node_current["Current account"]
end

subgraph group_workforce["Workforce"]
  node_emp_cli["Employee menu<br/>[main.java]"]
  node_emp_dao["Employee DAO<br/>[EmployeeDAO.java]"]
  node_department["Department<br/>[Department.java]"]
end

subgraph group_hospital["Hospital"]
  node_hospital_cli["Hospital menu<br/>[Main.java]"]
  node_patient_dao["Patient DAO<br/>[PatientDAO.java]"]
  node_patient["Patient record<br/>[Patient.java]"]
  node_person["Person base<br/>[Person.java]"]
  node_doctor["Doctor<br/>[Doctor.java]"]
  node_patient_search["Patient search<br/>[search.java]"]
end

subgraph group_library["Library"]
  node_library_cli["Library menu<br/>[Main.java]"]
  node_library_dao["Library operations<br/>[LibraryDAO.java]"]
  node_book["Book<br/>[Book.java]"]
  node_member["Library member<br/>[LibraryMember.java]"]
end

subgraph group_commerce["Commerce"]
  node_online_product["Shopping product<br/>[Product.java]"]
  node_order_dao["Order operations<br/>[OrderDAO.java]"]
  node_product_dao["Product operations<br/>[ProductDAO.java]"]
  node_retail_cli["Retail menu<br/>[Main .java]"]
  node_retail_service["Retail service<br/>[RetailService.java]"]
end

subgraph group_students["Student systems"]
  node_student_result["Exam result<br/>[StudentResult.java]"]
  node_result_ops["Result operations"]
  node_result_dao["Result DAO<br/>[ResultDAO.java]"]
  node_exam_cli["Exam menu<br/>[main.java]"]
  node_student_dao["Student DAO<br/>[StudentDAO.java]"]
  node_name_manager["Student names"]
end

node_user(("Console user"))

node_user -->|"enters choices"| node_bank_cli
node_bank_cli -->|"runs operations"| node_bank_dao
node_bank_cli -->|"creates account"| node_savings
node_bank_cli -->|"creates account"| node_current
node_bank_dao -->|"persists accounts"| node_account
node_savings -->|"extends"| node_account
node_current -->|"extends"| node_account
node_user -->|"enters choices"| node_emp_cli
node_emp_cli -->|"calls DAO"| node_emp_dao
node_emp_cli -->|"creates department"| node_department
node_user -->|"enters choices"| node_hospital_cli
node_hospital_cli -->|"calls DAO"| node_patient_dao
node_patient_dao -->|"stores records"| node_patient
node_patient -->|"extends"| node_person
node_doctor -->|"extends"| node_person
node_patient_search -->|"uses record"| node_patient
node_patient_search -->|"uses doctor"| node_doctor
node_user -->|"enters choices"| node_library_cli
node_library_cli -->|"calls operations"| node_library_dao
node_library_cli -->|"creates book"| node_book
node_library_dao -->|"manages books"| node_book
node_library_dao -->|"manages members"| node_member
node_user -->|"enters choices"| node_retail_cli
node_retail_cli -->|"calls service"| node_retail_service
node_retail_service -->|"loads products"| node_online_product
node_order_dao -->|"uses product"| node_online_product
node_product_dao -->|"uses product"| node_online_product
node_user -->|"enters choices"| node_exam_cli
node_exam_cli -->|"calls operations"| node_result_ops
node_exam_cli -->|"calls DAO"| node_result_dao
node_result_dao -->|"implements operations"| node_result_ops
node_result_dao -->|"persists results"| node_student_result
node_result_ops -->|"uses result"| node_student_result
node_student_dao -.->|"separate subsystem"| node_name_manager

click node_bank_cli "https://github.com/navyasri165/ic/blob/main/bankingsystem/Main.java"
click node_bank_dao "https://github.com/navyasri165/ic/blob/main/bankingsystem/BankAccountDAO.java"
click node_account "https://github.com/navyasri165/ic/blob/main/bankingsystem/BankAccount.java"
click node_savings "https://github.com/navyasri165/ic/blob/main/bankingsystem/SavingsAccount.java"
click node_current "https://github.com/navyasri165/ic/blob/main/bankingsystem/CurrentAccount.java"
click node_emp_cli "https://github.com/navyasri165/ic/blob/main/empdepmanagement/main.java"
click node_emp_dao "https://github.com/navyasri165/ic/blob/main/empmanagement/EmployeeDAO.java"
click node_department "https://github.com/navyasri165/ic/blob/main/empdepmanagement/Department.java"
click node_hospital_cli "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Main.java"
click node_patient_dao "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/PatientDAO.java"
click node_patient "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Patient.java"
click node_person "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Person.java"
click node_doctor "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Doctor.java"
click node_patient_search "https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/search.java"
click node_library_cli "https://github.com/navyasri165/ic/blob/main/librarysystem/Main.java"
click node_library_dao "https://github.com/navyasri165/ic/blob/main/librarysystem/LibraryDAO.java"
click node_book "https://github.com/navyasri165/ic/blob/main/librarysystem/Book.java"
click node_member "https://github.com/navyasri165/ic/blob/main/librarysystem/LibraryMember.java"
click node_online_product "https://github.com/navyasri165/ic/blob/main/onlineshopping/Product.java"
click node_order_dao "https://github.com/navyasri165/ic/blob/main/onlineshopping/OrderDAO.java"
click node_product_dao "https://github.com/navyasri165/ic/blob/main/product/ProductDAO.java"
click node_retail_cli "https://github.com/navyasri165/ic/blob/main/smartretailmanagement/Main%20.java"
click node_retail_service "https://github.com/navyasri165/ic/blob/main/smartretailmanagement/RetailService.java"
click node_student_result "https://github.com/navyasri165/ic/blob/main/studentexam/StudentResult.java"
click node_result_ops "https://github.com/navyasri165/ic/blob/main/studentexam/ResultOperations.java"
click node_result_dao "https://github.com/navyasri165/ic/blob/main/studentexam/ResultDAO.java"
click node_exam_cli "https://github.com/navyasri165/ic/blob/main/studentexam/main.java"
click node_student_dao "https://github.com/navyasri165/ic/blob/main/studentmanagement/StudentDAO.java"
click node_name_manager "https://github.com/navyasri165/ic/blob/main/studentmanagement/StudentNameManager.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_bank_cli,node_bank_dao,node_account,node_savings,node_current,node_user toneBlue
class node_emp_cli,node_emp_dao,node_department toneAmber
class node_hospital_cli,node_patient_dao,node_patient,node_person,node_doctor,node_patient_search toneMint
class node_library_cli,node_library_dao,node_book,node_member toneRose
class node_online_product,node_order_dao,node_product_dao,node_retail_cli,node_retail_service toneIndigo
class node_student_result,node_result_ops,node_result_dao,node_exam_cli,node_student_dao,node_name_manager toneTeal
```

## Components

### Banking

- [Bank menu](https://github.com/navyasri165/ic/blob/main/bankingsystem/Main.java): `bankingsystem/Main.java`
- [Account operations](https://github.com/navyasri165/ic/blob/main/bankingsystem/BankAccountDAO.java): `bankingsystem/BankAccountDAO.java`
- [Bank account](https://github.com/navyasri165/ic/blob/main/bankingsystem/BankAccount.java): `bankingsystem/BankAccount.java`
- [Savings account](https://github.com/navyasri165/ic/blob/main/bankingsystem/SavingsAccount.java): `bankingsystem/SavingsAccount.java`
- [Current account](https://github.com/navyasri165/ic/blob/main/bankingsystem/CurrentAccount.java): `bankingsystem/CurrentAccount.java`

### Workforce

- [Employee menu](https://github.com/navyasri165/ic/blob/main/empdepmanagement/main.java): `empdepmanagement/main.java`
- [Employee DAO](https://github.com/navyasri165/ic/blob/main/empmanagement/EmployeeDAO.java): `empmanagement/EmployeeDAO.java`
- [Department](https://github.com/navyasri165/ic/blob/main/empdepmanagement/Department.java): `empdepmanagement/Department.java`

### Hospital

- [Hospital menu](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Main.java): `hospitalmanagemeny/Main.java`
- [Patient DAO](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/PatientDAO.java): `hospitalmanagemeny/PatientDAO.java`
- [Patient record](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Patient.java): `hospitalmanagemeny/Patient.java`
- [Person base](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Person.java): `hospitalmanagemeny/Person.java`
- [Doctor](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/Doctor.java): `hospitalmanagemeny/Doctor.java`
- [Patient search](https://github.com/navyasri165/ic/blob/main/hospitalmanagemeny/search.java): `hospitalmanagemeny/search.java`

### Library

- [Library menu](https://github.com/navyasri165/ic/blob/main/librarysystem/Main.java): `librarysystem/Main.java`
- [Library operations](https://github.com/navyasri165/ic/blob/main/librarysystem/LibraryDAO.java): `librarysystem/LibraryDAO.java`
- [Book](https://github.com/navyasri165/ic/blob/main/librarysystem/Book.java): `librarysystem/Book.java`
- [Library member](https://github.com/navyasri165/ic/blob/main/librarysystem/LibraryMember.java): `librarysystem/LibraryMember.java`

### Commerce

- [Shopping product](https://github.com/navyasri165/ic/blob/main/onlineshopping/Product.java): `onlineshopping/Product.java`
- [Order operations](https://github.com/navyasri165/ic/blob/main/onlineshopping/OrderDAO.java): `onlineshopping/OrderDAO.java`
- [Product operations](https://github.com/navyasri165/ic/blob/main/product/ProductDAO.java): `product/ProductDAO.java`
- [Retail menu](https://github.com/navyasri165/ic/blob/main/smartretailmanagement/Main%20.java): `smartretailmanagement/Main .java`
- [Retail service](https://github.com/navyasri165/ic/blob/main/smartretailmanagement/RetailService.java): `smartretailmanagement/RetailService.java`

### Student systems

- [Exam result](https://github.com/navyasri165/ic/blob/main/studentexam/StudentResult.java): `studentexam/StudentResult.java`
- [Result operations](https://github.com/navyasri165/ic/blob/main/studentexam/ResultOperations.java): `studentexam/ResultOperations.java`
- [Result DAO](https://github.com/navyasri165/ic/blob/main/studentexam/ResultDAO.java): `studentexam/ResultDAO.java`
- [Exam menu](https://github.com/navyasri165/ic/blob/main/studentexam/main.java): `studentexam/main.java`
- [Student DAO](https://github.com/navyasri165/ic/blob/main/studentmanagement/StudentDAO.java): `studentmanagement/StudentDAO.java`
- [Student names](https://github.com/navyasri165/ic/blob/main/studentmanagement/StudentNameManager.java): `studentmanagement/StudentNameManager.java`

### Other components

- **Console user**

## Connections

- Console user → Bank menu: enters choices (evidence: `bankingsystem/Main.java`)
- Bank menu → Account operations: runs operations (evidence: `bankingsystem/Main.java`)
- Bank menu → Savings account: creates account (evidence: `bankingsystem/Main.java`)
- Bank menu → Current account: creates account (evidence: `bankingsystem/Main.java`)
- Account operations → Bank account: persists accounts (evidence: `bankingsystem/BankAccountDAO.java`)
- Savings account → Bank account: extends (evidence: `bankingsystem/SavingsAccount.java`)
- Current account → Bank account: extends (evidence: `bankingsystem/CurrentAccount.java`)
- Console user → Employee menu: enters choices (evidence: `empdepmanagement/main.java`)
- Employee menu → Employee DAO: calls DAO (evidence: `empdepmanagement/main.java`)
- Employee menu → Department: creates department (evidence: `empdepmanagement/main.java`)
- Console user → Hospital menu: enters choices (evidence: `hospitalmanagemeny/Main.java`)
- Hospital menu → Patient DAO: calls DAO (evidence: `hospitalmanagemeny/Main.java`)
- Patient DAO → Patient record: stores records (evidence: `hospitalmanagemeny/PatientDAO.java`)
- Patient record → Person base: extends (evidence: `hospitalmanagemeny/Patient.java`)
- Doctor → Person base: extends (evidence: `hospitalmanagemeny/Doctor.java`)
- Patient search → Patient record: uses record (evidence: `hospitalmanagemeny/search.java`)
- Patient search → Doctor: uses doctor (evidence: `hospitalmanagemeny/search.java`)
- Console user → Library menu: enters choices (evidence: `librarysystem/Main.java`)
- Library menu → Library operations: calls operations (evidence: `librarysystem/Main.java`)
- Library menu → Book: creates book (evidence: `librarysystem/Main.java`)
- Library operations → Book: manages books (evidence: `librarysystem/LibraryDAO.java`)
- Library operations → Library member: manages members (evidence: `librarysystem/LibraryDAO.java`)
- Console user → Retail menu: enters choices (evidence: `smartretailmanagement/Main .java`)
- Retail menu → Retail service: calls service (evidence: `smartretailmanagement/Main .java`)
- Retail service → Shopping product: loads products (evidence: `smartretailmanagement/RetailService.java`)
- Order operations → Shopping product: uses product (evidence: `onlineshopping/OrderDAO.java`)
- Product operations → Shopping product: uses product (evidence: `product/ProductDAO.java`)
- Console user → Exam menu: enters choices (evidence: `studentexam/main.java`)
- Exam menu → Result operations: calls operations (evidence: `studentexam/main.java`)
- Exam menu → Result DAO: calls DAO (evidence: `studentexam/main.java`)
- Result DAO → Result operations: implements operations (evidence: `studentexam/ResultDAO.java`)
- Result DAO → Exam result: persists results (evidence: `studentexam/ResultDAO.java`)
- Result operations → Exam result: uses result (evidence: `studentexam/ResultOperations.java`)
- Student DAO → Student names: separate subsystem
