# 2200090246/customerapplication architecture

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

- Interactive diagram: https://gitdiagram.com/2200090246/customerapplication
- Repository: https://github.com/2200090246/customerapplication

## Overview

This is a Spring Boot customer-management REST service. HTTP clients create, list, fetch, update, and delete customer records through the controller; the service implementation applies those operations through a Spring Data JPA repository, using the Customer entity. The graph distinguishes the API, service, and persistence layers. The excerpts show the repository abstraction but not database configuration or its concrete backend, so the database connection is shown as unverified.

Main entry points: [`customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.java`](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.java) (JPA repository), [`customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java`](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java) (Service implementation), [`customer/src/main/java/com/mahesh/customer/controller/CustomerController.java`](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/controller/CustomerController.java) (Customer controller), [`customer/src/main/java/com/mahesh/customer/service/CustomerService.java`](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerService.java) (Service contract)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["REST API"]
  node_controller["Customer controller"]
end

subgraph group_service["Customer Service"]
  node_service_contract["Service contract"]
  node_service_impl["Service implementation"]
end

subgraph group_persistence["Customer Persistence"]
  node_customer["Customer entity<br/>[Customer.java]"]
  node_repository["JPA repository<br/>[CustomerRepo.java]"]
  node_database[("Database")]
end

node_client(("HTTP client"))

node_client -->|"sends requests"| node_controller
node_controller -->|"calls operations"| node_service_contract
node_service_impl -->|"implements"| node_service_contract
node_service_impl -->|"queries and saves"| node_repository
node_repository -->|"stores entities"| node_customer
node_repository -.->|"uses persistence"| node_database

click node_controller "https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/controller/CustomerController.java"
click node_service_contract "https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerService.java"
click node_service_impl "https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java"
click node_customer "https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/model/Customer.java"
click node_repository "https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.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_controller,node_client toneBlue
class node_service_contract,node_service_impl toneAmber
class node_customer,node_repository,node_database toneMint
```

## Components

### REST API

- [Customer controller](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/controller/CustomerController.java): `customer/src/main/java/com/mahesh/customer/controller/CustomerController.java`

### Customer Service

- [Service contract](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerService.java): `customer/src/main/java/com/mahesh/customer/service/CustomerService.java`
- [Service implementation](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java): `customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java`

### Customer Persistence

- [Customer entity](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/model/Customer.java): `customer/src/main/java/com/mahesh/customer/model/Customer.java`
- [JPA repository](https://github.com/2200090246/customerapplication/blob/master/customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.java): `customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.java`
- **Database**

### Other components

- **HTTP client**

## Connections

- HTTP client → Customer controller: sends requests (evidence: `customer/src/main/java/com/mahesh/customer/controller/CustomerController.java`)
- Customer controller → Service contract: calls operations (evidence: `customer/src/main/java/com/mahesh/customer/controller/CustomerController.java`)
- Service implementation → Service contract: implements (evidence: `customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java`)
- Service implementation → JPA repository: queries and saves (evidence: `customer/src/main/java/com/mahesh/customer/service/CustomerServiceeImpl.java`)
- JPA repository → Customer entity: stores entities (evidence: `customer/src/main/java/com/mahesh/customer/repo/CustomerRepo.java`)
- JPA repository → Database: uses persistence
