Question
Create a clothes warehouse control application in Spring Boot - Create a shell project - Create an item model that will contain following fields: id,
Create a clothes warehouse control application in Spring Boot
- Create a shell project
- Create an item model that will contain following fields: id, name, brand (should be enum of fashionable brands(Balenciaga, Stone Island, Dior, e.g), year of creation, price
- Create Thymeleaf page to add item to stock using HTML form
- On addition of an item form should perform following validations(price is more than 1000, brand should be one of the list, year of creation is more than 2021)
- Addition should be performed successfully with no errors - Use Bootstrap to provide styling
Add Database Capabilities for Clothes Warehouse:
- Implement JPA Repository for Clothes Store with pagination and sorting
- Annotate Item with JPA model annotations so Item is interpreted as table
- Use command line runner to populate the table with some items
- On addition of the item it should be save to the database
- After addition you should be redirected to the list page (that you would need to create) that lists all the items
- Use bootstrap for styling of the list
- Create custom query to return items only for one specific brand and year 2022 and create a button on list page that on click sorts list by brand and re-renders the list
Please provide the code for each file.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started