This is a Spring Boot application that demonstrates a supplier management system with four main entities: Customer, Orders, Products, and Supplier.
The project follows a layered architecture (Controller → Service → DAO → Repository → Entity) and uses Spring Boot, Spring Data JPA, and Hibernate for database interaction.
-
Customer Management
- Add, update, delete, and fetch customer details.
-
Supplier Management
- Manage supplier information and associations.
-
Product Management
- CRUD operations on products.
-
Order Management
- Place orders linked with customers and products.
- Order status management (
PENDING,PROCESSING,SHIPPED,DELIVERED,CANCELLED,RETURNED).
-
Global Exception Handling
- Handles cases like
IdNotFoundException,NotRecordFoundException.
- Handles cases like
com.supplier
│── controller # REST Controllers (Customer, Supplier, Orders, Products)
│── service # Business logic layer
│── dao # DAO layer for intermediate logic
│── repository # JPA repositories for DB interaction
│── entity # Entity classes (Customer, Supplier, Orders, Products)
│── dto # DTOs like OrderStatus (enum), ResponseStructure
│── exception # Custom exceptions & global exception handler
│── Application.java # Main Spring Boot Application
- Java 17 (or your configured version)
- Spring Boot
- Spring Data JPA
- Hibernate
- Maven
- PostgreSQL (or any configured database)
- RESTful APIs
- Clone the repository
git clone https://github.com/SVChougule/Spring-project.git cd Spring-project