Skip to content

13 prevent the duplication of vendors#14

Merged
XavierJCallait merged 28 commits intomainfrom
13-prevent-the-duplication-of-vendors
Aug 9, 2025
Merged

13 prevent the duplication of vendors#14
XavierJCallait merged 28 commits intomainfrom
13-prevent-the-duplication-of-vendors

Conversation

@XavierJCallait
Copy link
Owner

Prevents the duplication of vendors in database. Should it occur, error handling will be done gracefully <- I hope.

@XavierJCallait XavierJCallait linked an issue Aug 8, 2025 that may be closed by this pull request
@XavierJCallait XavierJCallait requested a review from Copilot August 9, 2025 23:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates from Hibernate configuration to Spring Boot with JPA for data access, while implementing vendor deduplication functionality and restructuring the package structure from model/util to app.* packages.

  • Removes manual Hibernate configuration in favor of Spring Boot auto-configuration
  • Implements vendor deduplication logic through VendorService that prevents duplicate vendor names
  • Restructures the entire codebase to use proper app.* package naming convention

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/java/app/InventoryApp.java Converts main class to Spring Boot application with CommandLineRunner for database testing
src/main/java/app/service/VendorService.java Adds service layer with vendor deduplication logic
src/main/java/app/repository/VendorRepository.java Creates Spring Data JPA repository for vendor operations
src/main/java/app/model/Vendor.java Updates vendor model to use auto-generated UUIDs and unique constraints
src/main/java/app/model/Product.java Removes manual UUID handling, adds weight field, reorders constructor parameters
src/main/java/app/util/EnvironmentVariableInitializer.java Updates environment variable names to Spring Boot conventions
pom.xml Adds Spring Boot dependencies and changes formatter goal from check to apply

@XavierJCallait XavierJCallait marked this pull request as ready for review August 9, 2025 23:32
@XavierJCallait XavierJCallait merged commit b572f1d into main Aug 9, 2025
3 checks passed
@XavierJCallait XavierJCallait deleted the 13-prevent-the-duplication-of-vendors branch August 9, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent the duplication of vendors

1 participant